Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / media / media.api.php
diff --git a/web/core/modules/media/media.api.php b/web/core/modules/media/media.api.php
new file mode 100644 (file)
index 0000000..8de1c64
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+/**
+ * @file
+ * Hooks related to Media and its plugins.
+ */
+
+/**
+ * @addtogroup hooks
+ * @{
+ */
+
+/**
+ * Alters the information provided in \Drupal\media\Annotation\MediaSource.
+ *
+ * @param array $sources
+ *   The array of media source plugin definitions, keyed by plugin ID.
+ */
+function hook_media_source_info_alter(array &$sources) {
+  $sources['youtube']['label'] = t('Youtube rocks!');
+}
+
+/**
+ * @} End of "addtogroup hooks".
+ */