You are here

public function CropStorageInterface::getCrop in Crop API 8.2

Same name and namespace in other branches
  1. 8 src/CropStorageInterface.php \Drupal\crop\CropStorageInterface::getCrop()

Retrieve crop ID based on image URI and crop type.

Parameters

string $uri: URI of the image.

string $type: Crop type.

Return value

\Drupal\crop\CropInterface|null A Crop object or NULL if nothing matches the search parameters.

1 method overrides CropStorageInterface::getCrop()
CropStorage::getCrop in src/CropStorage.php
Retrieve crop ID based on image URI and crop type.

File

src/CropStorageInterface.php, line 25

Class

CropStorageInterface
Provides an interface defining an crop storage controller.

Namespace

Drupal\crop

Code

public function getCrop($uri, $type);