You are here

protected function SetCanvasTrait::arguments in Image Effects 8.3

Same name and namespace in other branches
  1. 8 src/Plugin/ImageToolkit/Operation/SetCanvasTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\SetCanvasTrait::arguments()
  2. 8.2 src/Plugin/ImageToolkit/Operation/SetCanvasTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\SetCanvasTrait::arguments()

File

src/Plugin/ImageToolkit/Operation/SetCanvasTrait.php, line 13

Class

SetCanvasTrait
Base trait for set canvas operations.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function arguments() {
  return [
    'canvas_color' => [
      'description' => 'Color',
      'required' => FALSE,
      'default' => NULL,
    ],
    'width' => [
      'description' => 'The width of the canvas image, in pixels',
    ],
    'height' => [
      'description' => 'The height of the canvas image, in pixels',
    ],
    'x_pos' => [
      'description' => 'The left offset of the original image on the canvas, in pixels',
    ],
    'y_pos' => [
      'description' => 'The top offset of the original image on the canvas, in pixels',
    ],
  ];
}