public function ImageWidgetCropInterface::applyCrop in Image Widget Crop 8.2
Create new crop entity with user properties.
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 for the contained properties of image_crop widget.
\Drupal\crop\Entity\CropType $crop_type: The entity CropType.
1 method overrides ImageWidgetCropInterface::applyCrop()
- ImageWidgetCropManager::applyCrop in src/
ImageWidgetCropManager.php - Create new crop entity with user properties.
File
- src/
ImageWidgetCropInterface.php, line 27
Class
- ImageWidgetCropInterface
- Defines the interface for ImageWidgetCropManager calculation class service.
Namespace
Drupal\image_widget_cropCode
public function applyCrop(array $properties, $field_value, CropType $crop_type);