public static function Geocoder::getPlugins in Geocoder 7.2
Gets a list of available plugins.
Parameters
string $type: The plugin type.
Return value
string[] The Geocoder plugin type.
4 calls to Geocoder::getPlugins()
- geocoder_field_field_formatter_settings_form in modules/
geocoder_field/ geocoder_field.module - Implements hook_field_formatter_settings_form().
- geocoder_field_field_widget_settings_form in modules/
geocoder_field/ geocoder_field.module - Implements hook_field_widget_settings_form().
- geocoder_services_permission in modules/
geocoder_services/ geocoder_services.module - Implements hook_permission().
- geocoder_services_services_capabilities in modules/
geocoder_services/ geocoder_services.services.inc - Return capabilities of the Geocoder service.
File
- src/
Geocoder.php, line 147
Class
Namespace
Drupal\geocoderCode
public static function getPlugins($type = NULL) {
$options = array();
foreach (self::getPluginManager()
->getDefinitions() as $data) {
$name = isset($data['name']) ? $data['name'] : $data['id'];
$options[$data['type']][$data['id']] = $name;
}
asort($options);
return isset($options[$type]) ? $options[$type] : $options;
}