Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / entity / src / Menu / EntityLocalActionProviderInterface.php
diff --git a/web/modules/contrib/entity/src/Menu/EntityLocalActionProviderInterface.php b/web/modules/contrib/entity/src/Menu/EntityLocalActionProviderInterface.php
new file mode 100644 (file)
index 0000000..bba16c3
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace Drupal\entity\Menu;
+
+use Drupal\Core\Entity\EntityTypeInterface;
+
+/**
+ * Provides an interface for entity local action providers.
+ */
+interface EntityLocalActionProviderInterface {
+
+  /**
+   * Builds local actions for the given entity type.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
+   *   The entity type.
+   *
+   * @return array[]
+   *   An array of local action definitions.
+   */
+  public function buildLocalActions(EntityTypeInterface $entity_type);
+
+}