You are here

function leaflet_theme in Leaflet 8

Same name and namespace in other branches
  1. 7 leaflet.module \leaflet_theme()
  2. 2.1.x leaflet.module \leaflet_theme()
  3. 2.0.x leaflet.module \leaflet_theme()

Implements hook_theme().

File

./leaflet.module, line 11
Contains the leaflet.module file.

Code

function leaflet_theme() {
  return [
    'leaflet_map' => [
      'variables' => [
        'map_id' => NULL,
        'height' => '400px',
        'map' => [],
      ],
    ],
  ];
}