Version 1
[yaffs-website] / web / modules / contrib / embed / embed.api.php
diff --git a/web/modules/contrib/embed/embed.api.php b/web/modules/contrib/embed/embed.api.php
new file mode 100644 (file)
index 0000000..1024b8f
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+/**
+ * @file
+ * Hooks provided by the Embed module.
+ */
+
+/**
+ * @addtogroup hooks
+ * @{
+ */
+
+/**
+ * Alter the embed type plugin definitions.
+ *
+ * @param array &$plugins
+ *   An associative array containing the embed type plugin definitions keyed by
+ *   plugin ID.
+ *
+ * @see \Drupal\embed\EmbedType\EmbedTypeManager
+ */
+function hook_embed_type_plugins_alter(array &$plugins) {
+  if (isset($plugins['entity'])) {
+    $plugins['entity']['label'] = 'A better label for embedded entities';
+  }
+}
+
+/**
+ * @} End of "addtogroup hooks".
+ */