Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / crop / src / CropStorageInterface.php
index 68ec02a2638e61c77a19f0df928a81db6d4c2b91..e1da959623e6c1afbd3ae811ded2b0af6bb2b8fa 100644 (file)
@@ -11,4 +11,17 @@ use Drupal\Core\Entity\Sql\SqlEntityStorageInterface;
  */
 interface CropStorageInterface extends SqlEntityStorageInterface, DynamicallyFieldableEntityStorageSchemaInterface, EntityBundleListenerInterface {
 
+  /**
+   * Retrieve crop ID based on image URI and crop type.
+   *
+   * @param string $uri
+   *   URI of the image.
+   * @param string $type
+   *   Crop type.
+   *
+   * @return \Drupal\crop\CropInterface|null
+   *   A Crop object or NULL if nothing matches the search parameters.
+   */
+  public function getCrop($uri, $type);
+
 }