You are here

public function IpGeoLocPluginStyleLeaflet::pluginStyleLeafletMapGetInfo in IP Geolocation Views & Maps 8

Wrapper around the only programmatic dependency we have on Leaflet module.

Note: this indirectly calls ip_geoloc_leaflet_map_info_alter($map_info).

4 calls to IpGeoLocPluginStyleLeaflet::pluginStyleLeafletMapGetInfo()
IpGeoLocPluginStyleLeaflet::addMapAndHeight in src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php
Form part definition.
IpGeoLocPluginStyleLeaflet::addMoreMapOptions in src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php
Form part definition.
IpGeoLocPluginStyleLeaflet::render in src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php
Transform the View result in a list of marker locations and render on map.
IpGeoLocPluginStyleLeaflet::validateOptionsForm in src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php
Validate the options form.

File

src/Plugin/views/style/IpGeoLocPluginStyleLeaflet.php, line 1301

Class

IpGeoLocPluginStyleLeaflet
Views Style plugin extension for Leaflet (if enabled).

Namespace

Drupal\ip_geoloc\Plugin\views\style

Code

public function pluginStyleLeafletMapGetInfo($map_name = NULL) {
  return $this->moduleHandler
    ->moduleExists('leaflet') ? leaflet_map_get_info($map_name) : [];
}