You are here

public function GeolocationMap::getInfo in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Element/GeolocationMap.php \Drupal\geolocation\Element\GeolocationMap::getInfo()

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/GeolocationMap.php, line 49

Class

GeolocationMap
Provides a render element to display a geolocation map.

Namespace

Drupal\geolocation\Element

Code

public function getInfo() {
  $class = get_class($this);
  $info = [
    '#process' => [
      [
        $class,
        'processGroup',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderGroup',
      ],
      [
        $this,
        'preRenderMap',
      ],
    ],
    '#maptype' => NULL,
    '#centre' => NULL,
    '#id' => NULL,
    '#controls' => NULL,
    '#context' => [],
  ];
  return $info;
}