public static function CropInterface::cropExists in Crop API 8.2
Same name and namespace in other branches
- 8 src/CropInterface.php \Drupal\crop\CropInterface::cropExists()
Checks whether crop exists for an image.
Parameters
string $uri: URI of image to check for.
string $type: (Optional) Type of crop. Function will check across all available types if omitted.
Return value
bool Boolean TRUE if crop exists and FALSE if not.
1 method overrides CropInterface::cropExists()
- Crop::cropExists in src/
Entity/ Crop.php - Checks whether crop exists for an image.
File
- src/
CropInterface.php, line 86
Class
- CropInterface
- Provides an interface defining the crop entity.
Namespace
Drupal\cropCode
public static function cropExists($uri, $type = NULL);