public function GeocoderPluginManagerBase::getPluginsAsOptions in Geocoder 8.2
Same name and namespace in other branches
- 8.3 src/GeocoderPluginManagerBase.php \Drupal\geocoder\GeocoderPluginManagerBase::getPluginsAsOptions()
Gets a list of available plugins to be used in forms.
Return value
string[] A list of plugins in a format suitable for form API '#options' key.
File
- src/
GeocoderPluginManagerBase.php, line 42
Class
- GeocoderPluginManagerBase
- Provides a base class for geocoder plugin managers.
Namespace
Drupal\geocoderCode
public function getPluginsAsOptions() {
return array_map(function ($plugin) {
return $plugin['name'];
}, $this
->getPlugins());
}