You are here

public function GeolocationMapLocation::getInfo in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Element/GeolocationMapLocation.php \Drupal\geolocation\Element\GeolocationMapLocation::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/GeolocationMapLocation.php, line 34

Class

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

Namespace

Drupal\geolocation\Element

Code

public function getInfo() {
  $class = get_class($this);
  $info = [
    '#process' => [
      [
        $class,
        'processGroup',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderGroup',
      ],
      [
        $this,
        'preRenderLocation',
      ],
    ],
    '#title' => NULL,
    '#position' => NULL,
    '#id' => NULL,
    '#hidden' => NULL,
    '#icon' => NULL,
    '#label' => NULL,
  ];
  return $info;
}