public function ImageWidgetCropInterface::cropHasChanged in Image Widget Crop 8.2
Compare crop zone properties when user saved one crop.
Parameters
array $crop_properties: The crop properties after saved the form.
array $old_crop: The crop properties save in this crop entity, Only if this crop already exist.
Return value
bool Return true if properties is not identical.
1 method overrides ImageWidgetCropInterface::cropHasChanged()
- ImageWidgetCropManager::cropHasChanged in src/
ImageWidgetCropManager.php - Compare crop zone properties when user saved one crop.
File
- src/
ImageWidgetCropInterface.php, line 173
Class
- ImageWidgetCropInterface
- Defines the interface for ImageWidgetCropManager calculation class service.
Namespace
Drupal\image_widget_cropCode
public function cropHasChanged(array $crop_properties, array $old_crop);