public static function CropInterface::findCrop in Crop API 8
Same name and namespace in other branches
- 8.2 src/CropInterface.php \Drupal\crop\CropInterface::findCrop()
Loads crop based on image URI and crop type.
Parameters
string $uri: URI of the image.
string $type: Crop type.
Return value
\Drupal\crop\CropInterface|null Crop entity or NULL if crop doesn't exist.
1 method overrides CropInterface::findCrop()
- Crop::findCrop in src/
Entity/ Crop.php - Loads crop based on image URI and crop type.
File
- src/
CropInterface.php, line 99
Class
- CropInterface
- Provides an interface defining the crop entity.
Namespace
Drupal\cropCode
public static function findCrop($uri, $type);