function Crop::arguments

Same name in other branches
  1. 9 core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Crop.php \Drupal\system\Plugin\ImageToolkit\Operation\gd\Crop::arguments()
  2. 8.9.x core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Crop.php \Drupal\system\Plugin\ImageToolkit\Operation\gd\Crop::arguments()
  3. 11.x core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Crop.php \Drupal\system\Plugin\ImageToolkit\Operation\gd\Crop::arguments()

Overrides ImageToolkitOperationBase::arguments

File

core/modules/system/src/Plugin/ImageToolkit/Operation/gd/Crop.php, line 23

Class

Crop
Defines GD2 Crop operation.

Namespace

Drupal\system\Plugin\ImageToolkit\Operation\gd

Code

protected function arguments() {
    return [
        'x' => [
            'description' => 'The starting x offset at which to start the crop, in pixels',
        ],
        'y' => [
            'description' => 'The starting y offset at which to start the crop, in pixels',
        ],
        'width' => [
            'description' => 'The width of the cropped area, in pixels',
            'required' => FALSE,
            'default' => NULL,
        ],
        'height' => [
            'description' => 'The height of the cropped area, in pixels',
            'required' => FALSE,
            'default' => NULL,
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.