function Crop::arguments

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

File

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

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.