public function ImageWidgetCropInterface::saveCrop in Image Widget Crop 8.2
Save the crop when this crop not exist.
Parameters
double[] $crop_properties: The properties of the crop applied to the original image (dimensions).
array|mixed $field_value: An array of values for the contained properties of image_crop widget.
\Drupal\crop\Entity\CropType $crop_type: The entity CropType.
bool $notify: Show notification after actions (default TRUE).
1 method overrides ImageWidgetCropInterface::saveCrop()
- ImageWidgetCropManager::saveCrop in src/
ImageWidgetCropManager.php - Save the crop when this crop not exist.
File
- src/
ImageWidgetCropInterface.php, line 54
Class
- ImageWidgetCropInterface
- Defines the interface for ImageWidgetCropManager calculation class service.
Namespace
Drupal\image_widget_cropCode
public function saveCrop(array $crop_properties, $field_value, CropType $crop_type, $notify = TRUE);