public function ImageWidgetCropInterface::updateCrop in Image Widget Crop 8.2
Update old crop with new properties choose in UI.
Parameters
array $properties: All properties returned by the crop plugin (js), and the size of thumbnail image.
array|mixed $field_value: An array of values contain properties of image_crop widget.
\Drupal\crop\Entity\CropType $crop_type: The entity CropType.
1 method overrides ImageWidgetCropInterface::updateCrop()
- ImageWidgetCropManager::updateCrop in src/
ImageWidgetCropManager.php - Update old crop with new properties choose in UI.
File
- src/
ImageWidgetCropInterface.php, line 40
Class
- ImageWidgetCropInterface
- Defines the interface for ImageWidgetCropManager calculation class service.
Namespace
Drupal\image_widget_cropCode
public function updateCrop(array $properties, $field_value, CropType $crop_type);