You are here

public function GeolocationMapPolyline::getInfo in Geolocation Field 8.3

Returns the element properties for this element.

Return value

array An array of element properties. See \Drupal\Core\Render\ElementInfoManagerInterface::getInfo() for documentation of the standard properties of all elements, and the return value format.

Overrides ElementInterface::getInfo

File

src/Element/GeolocationMapPolyline.php, line 27

Class

GeolocationMapPolyline
Provides a render element for a single geolocation map location.

Namespace

Drupal\geolocation\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#process' => [
      [
        $class,
        'processGroup',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderGroup',
      ],
      [
        $this,
        'preRenderPolyline',
      ],
    ],
    '#title' => NULL,
    '#coordinates' => NULL,
    '#id' => NULL,
    '#stroke_color' => NULL,
    '#stroke_width' => NULL,
    '#stroke_opacity' => NULL,
  ];
}