You are here

public function GeocoderPluginManagerBase::getPlugins in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/GeocoderPluginManagerBase.php \Drupal\geocoder\GeocoderPluginManagerBase::getPlugins()

Return the array of plugins and their settings if any.

Return value

array A list of plugins with their settings.

1 call to GeocoderPluginManagerBase::getPlugins()
GeocoderPluginManagerBase::getPluginsAsOptions in src/GeocoderPluginManagerBase.php
Gets a list of available plugins to be used in forms.
1 method overrides GeocoderPluginManagerBase::getPlugins()
ProviderPluginManager::getPlugins in src/ProviderPluginManager.php
Return the array of plugins and their settings if any.

File

src/GeocoderPluginManagerBase.php, line 54

Class

GeocoderPluginManagerBase
Provides a base class for geocoder plugin managers.

Namespace

Drupal\geocoder

Code

public function getPlugins() {
  $definitions = array_map(function (array $definition) {
    $definition += [
      'name' => $definition['id'],
    ];
    return $definition;
  }, $this
    ->getDefinitions());
  ksort($definitions);
  return $definitions;
}