You are here

trait DrawLineTrait in Image Effects 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/ImageToolkit/Operation/DrawLineTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\DrawLineTrait
  2. 8.2 src/Plugin/ImageToolkit/Operation/DrawLineTrait.php \Drupal\image_effects\Plugin\ImageToolkit\Operation\DrawLineTrait

Base trait for image_effects DrawLine operations.

Hierarchy

  • trait \Drupal\image_effects\Plugin\ImageToolkit\Operation\DrawLineTrait
1 file declares its use of DrawLineTrait
DrawLine.php in src/Plugin/ImageToolkit/Operation/gd/DrawLine.php

File

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

Namespace

Drupal\image_effects\Plugin\ImageToolkit\Operation
View source
trait DrawLineTrait {

  /**
   * {@inheritdoc}
   */
  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.',
      ],
    ];
  }

}

Members