public function LeafletTileLayerPluginManager::getLeafletTilesLayersOptions in Geofield Map 8
Get the id => label associative array of all defined Leaflet Tile Layers.
File
- src/
LeafletTileLayer/ LeafletTileLayerPluginManager.php, line 65
Class
- LeafletTileLayerPluginManager
- Provides the Leaflet tile layers plugin plugin manager.
Namespace
Drupal\geofield_map\leafletTileLayerCode
public function getLeafletTilesLayersOptions() {
$options = [];
foreach ($this
->getDefinitions() as $k => $plugin) {
$options[$k] = $plugin['label'];
}
ksort($options);
return $options;
}