You are here

protected function MaskTrait::arguments in Image Effects 8

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

File

src/Plugin/ImageToolkit/Operation/MaskTrait.php, line 15

Class

MaskTrait
Base trait for image_effects Mask operations.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function arguments() {
  return [
    'mask_image' => [
      'description' => 'Mask image.',
    ],
    'mask_width' => [
      'description' => 'Width of mask image.',
      'required' => FALSE,
      'default' => NULL,
    ],
    'mask_height' => [
      'description' => 'Height of mask image.',
      'required' => FALSE,
      'default' => NULL,
    ],
    'x_offset' => [
      'description' => 'X offset for mask image.',
      'required' => FALSE,
      'default' => 0,
    ],
    'y_offset' => [
      'description' => 'Y offset for mask image.',
      'required' => FALSE,
      'default' => 0,
    ],
  ];
}