You are here

public function MapProviderManager::getMapProviderOptions in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/MapProviderManager.php \Drupal\geolocation\MapProviderManager::getMapProviderOptions()

Get Map provider settings.

Return value

array Options.

File

src/MapProviderManager.php, line 88

Class

MapProviderManager
Search plugin manager.

Namespace

Drupal\geolocation

Code

public function getMapProviderOptions() {
  $options = [];
  foreach ($this
    ->getDefinitions() as $id => $definition) {
    $options[$id] = $definition['name'];
  }
  return $options;
}