You are here

public function FarmMap::getInfo in farmOS 2.x

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

modules/core/map/src/Element/FarmMap.php, line 19

Class

FarmMap
Provides a farm_map render element.

Namespace

Drupal\farm_map\Element

Code

public function getInfo() {
  $class = get_class($this);
  return [
    '#pre_render' => [
      [
        $class,
        'preRenderMap',
      ],
    ],
    '#theme' => 'farm_map',
    '#map_type' => 'default',
  ];
}