public function Resize::validateResize in IMCE 8
Same name and namespace in other branches
- 8.2 src/Plugin/ImcePlugin/Resize.php \Drupal\imce\Plugin\ImcePlugin\Resize::validateResize()
Validates item resizing.
1 call to Resize::validateResize()
- Resize::opResize in src/
Plugin/ ImcePlugin/ Resize.php - Operation handler: resize.
File
- src/
Plugin/ ImcePlugin/ Resize.php, line 57
Class
- Resize
- Defines Imce Resize plugin.
Namespace
Drupal\imce\Plugin\ImcePluginCode
public function validateResize(ImceFM $fm, array $items, $width, $height, $copy) {
return $items && $fm
->validateDimensions($items, $width, $height) && $fm
->validateImageTypes($items) && $fm
->validatePermissions($items, 'resize_images');
}