You are here

protected function WatermarkTrait::arguments in Image Effects 8.2

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

File

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

Class

WatermarkTrait
Base trait for image_effects Watermark operations.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function arguments() {
  return [
    'watermark_image' => [
      'description' => 'Watermark image.',
    ],
    'watermark_width' => [
      'description' => 'Width of watermark image.',
      'required' => FALSE,
      'default' => NULL,
    ],
    'watermark_height' => [
      'description' => 'Height of watermark image.',
      'required' => FALSE,
      'default' => NULL,
    ],
    'x_offset' => [
      'description' => 'X offset for watermark image.',
      'required' => FALSE,
      'default' => 0,
    ],
    'y_offset' => [
      'description' => 'Y offset for watermark image.',
      'required' => FALSE,
      'default' => 0,
    ],
    'opacity' => [
      'description' => 'Opacity for watermark image.',
      'required' => FALSE,
      'default' => 100,
    ],
  ];
}