You are here

protected function DrawRectangleTrait::arguments in Image Effects 8.3

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

File

src/Plugin/ImageToolkit/Operation/DrawRectangleTrait.php, line 16

Class

DrawRectangleTrait
Base trait for draw rectangle operations.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function arguments() {
  return [
    'rectangle' => [
      'description' => 'A PositionedRectangle object.',
    ],
    'fill_color' => [
      'description' => 'The RGBA color of the polygon fill.',
      'required' => FALSE,
      'default' => NULL,
    ],
    'fill_color_luma' => [
      'description' => 'If TRUE, convert RGBA of the polygon fill to best match using luma.',
      'required' => FALSE,
      'default' => FALSE,
    ],
    'border_color' => [
      'description' => 'The RGBA color of the polygon line.',
      'required' => FALSE,
      'default' => NULL,
    ],
    'border_color_luma' => [
      'description' => 'If TRUE, convert RGBA of the polygon line to best match using luma.',
      'required' => FALSE,
      'default' => FALSE,
    ],
  ];
}