public function ProviderUsingHandlerBase::__construct in Geocoder 8.3
Same name and namespace in other branches
- 8.2 src/ProviderUsingHandlerBase.php \Drupal\geocoder\ProviderUsingHandlerBase::__construct()
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Overrides ProviderBase::__construct
2 calls to ProviderUsingHandlerBase::__construct()
- ConfigurableProviderUsingHandlerBase::__construct in src/
ConfigurableProviderUsingHandlerBase.php - Constructs a geocoder provider plugin object.
- ProviderUsingHandlerWithAdapterBase::__construct in src/
ProviderUsingHandlerWithAdapterBase.php - Constructs a geocoder provider plugin object.
2 methods override ProviderUsingHandlerBase::__construct()
- ConfigurableProviderUsingHandlerBase::__construct in src/
ConfigurableProviderUsingHandlerBase.php - Constructs a geocoder provider plugin object.
- ProviderUsingHandlerWithAdapterBase::__construct in src/
ProviderUsingHandlerWithAdapterBase.php - Constructs a geocoder provider plugin object.
File
- src/
ProviderUsingHandlerBase.php, line 37
Class
- ProviderUsingHandlerBase
- Provides a base class for providers using handlers.
Namespace
Drupal\geocoderCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager) {
// The ProviderBase constructor needs to be run anyway (before possible
// exception @throw), to allow the ProviderBase process method.
parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory, $cache_backend, $language_manager);
if (empty($plugin_definition['handler'])) {
throw new InvalidPluginDefinitionException($plugin_id, "Plugin '{$plugin_id}' should define a handler.");
}
}