You are here

protected function BackgroundTrait::arguments in Image Effects 8

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

File

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

Class

BackgroundTrait
Base trait for image_effects Background operations.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function arguments() {
  return [
    'x_offset' => [
      'description' => 'X offset for source image.',
    ],
    'y_offset' => [
      'description' => 'Y offset for source image.',
    ],
    'opacity' => [
      'description' => 'Opacity for source image.',
      'required' => FALSE,
      'default' => 100,
    ],
    'background_image' => [
      'description' => 'Image to use for background.',
    ],
  ];
}