You are here

public function GeocoderPluginManagerBase::getPlugins in Geocoder 8.3

Same name and namespace in other branches
  1. 8.2 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
Returns the defined plugins.

File

src/GeocoderPluginManagerBase.php, line 52

Class

GeocoderPluginManagerBase
Provides a base class for geocoder plugin managers.

Namespace

Drupal\geocoder

Code

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