Version 1
[yaffs-website] / web / modules / contrib / entity_browser / src / DisplayRouterInterface.php
diff --git a/web/modules/contrib/entity_browser/src/DisplayRouterInterface.php b/web/modules/contrib/entity_browser/src/DisplayRouterInterface.php
new file mode 100644 (file)
index 0000000..6f0fccd
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\entity_browser;
+
+/**
+ * Defines an interface for displays that operate on routes.
+ *
+ * In addition to implementing the interface, specify 'uses_routes' in the
+ * plugin definition.
+ */
+interface DisplayRouterInterface {
+
+  /**
+   * Gets page path.
+   *
+   * @return string
+   *   Path where display operates.
+   */
+  public function path();
+
+}