public function GeocoderPluginManagerBase::getPluginsAsOptions in Geocoder 8.3
Same name and namespace in other branches
- 8.2 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 40
Class
- GeocoderPluginManagerBase
- Provides a base class for geocoder plugin managers.
Namespace
Drupal\geocoderCode
public function getPluginsAsOptions() : array {
return array_map(function ($plugin) {
return $plugin['name'];
}, $this
->getPlugins());
}