Version 1
[yaffs-website] / web / modules / contrib / crop / src / EntityProviderInterface.php
diff --git a/web/modules/contrib/crop/src/EntityProviderInterface.php b/web/modules/contrib/crop/src/EntityProviderInterface.php
new file mode 100644 (file)
index 0000000..2cc568c
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace Drupal\crop;
+
+use Drupal\Component\Plugin\PluginInspectionInterface;
+use Drupal\Core\Entity\EntityInterface;
+
+/**
+ * Defines the interface for entity provider integration plugin.
+ */
+interface EntityProviderInterface extends PluginInspectionInterface {
+
+  /**
+   * Returns the selection display label.
+   *
+   * @return string
+   *   The selection display label.
+   */
+  public function label();
+
+  /**
+   * Gets URI of the image file.
+   *
+   * @param \Drupal\Core\Entity\EntityInterface $entity
+   *   Entity being cropping.
+   *
+   * @return string|false
+   *   URI as string or FALSE
+   */
+  public function uri(EntityInterface $entity);
+
+}