function geocoder_geocoder_provider_info_alter in Geocoder 8.3
Implements hook_geocoder_provider_info_alter().
Parameters
array $plugins: The list of plugin definitions to alter, passed by reference.
File
- ./
geocoder.module, line 47
Code
function geocoder_geocoder_provider_info_alter(array &$plugins) : void {
// Remove plugins for which the providers are not installed.
$plugins = array_filter($plugins, function (array $plugin) : bool {
return empty($plugin['handler']) || class_exists($plugin['handler']);
});
}