public function Geocoder::__construct in Geocoder 8.3
Same name and namespace in other branches
- 8.2 src/Geocoder.php \Drupal\geocoder\Geocoder::__construct()
Constructs a geocoder factory class.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
\Drupal\geocoder\ProviderPluginManager $provider_plugin_manager: The geocoder provider plugin manager service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
Geocoder.php, line 47
Class
- Geocoder
- Provides a geocoder factory class.
Namespace
Drupal\geocoderCode
public function __construct(ConfigFactoryInterface $config_factory, ProviderPluginManager $provider_plugin_manager, ModuleHandlerInterface $module_handler) {
$this->config = $config_factory
->get('geocoder.settings');
$this->providerPluginManager = $provider_plugin_manager;
$this->moduleHandler = $module_handler;
}