You are here

protected function DrawLineTrait::arguments in Image Effects 8.2

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

File

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

Class

DrawLineTrait
Base trait for image_effects DrawLine operations.

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation

Code

protected function arguments() {
  return [
    'x1' => [
      'description' => 'x-coordinate for first point.',
    ],
    'y1' => [
      'description' => 'y-coordinate for first point.',
    ],
    'x2' => [
      'description' => 'x-coordinate for second point.',
    ],
    'y2' => [
      'description' => 'y-coordinate for second point.',
    ],
    'color' => [
      'description' => 'The line color, in RGBA format.',
    ],
  ];
}