You are here

public function GeolocationInput::getInfo in Geolocation Field 8.2

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

Class

GeolocationInput
Provides a render element to display a geolocation map.

Namespace

Drupal\geolocation\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#input' => TRUE,
    '#default_value' => NULL,
    '#process' => [
      [
        $class,
        'processGeolocation',
      ],
      [
        $class,
        'processGroup',
      ],
    ],
    '#pre_render' => [
      [
        $class,
        'preRenderGroup',
      ],
    ],
    '#element_validate' => [
      [
        $class,
        'validateGeolocation',
      ],
    ],
    '#theme_wrappers' => [
      'fieldset',
    ],
  ];
}