function ScaleAndCrop::arguments
Overrides ImageToolkitOperationBase::arguments
File
-
core/
modules/ system/ src/ Plugin/ ImageToolkit/ Operation/ gd/ ScaleAndCrop.php, line 23
Class
- ScaleAndCrop
- Defines GD2 Scale and crop operation.
Namespace
Drupal\system\Plugin\ImageToolkit\Operation\gdCode
protected function arguments() {
return [
'x' => [
'description' => 'The horizontal offset for the start of the crop, in pixels',
'required' => FALSE,
'default' => NULL,
],
'y' => [
'description' => 'The vertical offset for the start the crop, in pixels',
'required' => FALSE,
'default' => NULL,
],
'width' => [
'description' => 'The target width, in pixels',
],
'height' => [
'description' => 'The target height, in pixels',
],
];
}