Version 1
[yaffs-website] / web / modules / contrib / media_entity / media_entity.api.php
diff --git a/web/modules/contrib/media_entity/media_entity.api.php b/web/modules/contrib/media_entity/media_entity.api.php
new file mode 100644 (file)
index 0000000..c8eb7b8
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @file
+ * Hooks related to media entity and it's plugins.
+ */
+
+/**
+ * @addtogroup hooks
+ * @{
+ */
+
+/**
+ * Alter the information provided in \Drupal\media_entity\Annotation\MediaType.
+ *
+ * @param array $types
+ *   The array of type plugins, keyed on the machine-readable name.
+ */
+function hook_media_entity_type_info_alter(&$types) {
+  $types['youtube']['label'] = t('Youtube rocks!');
+}
+
+/**
+ * @} End of "addtogroup hooks".
+ */