public function ProviderUsingHandlerBase::__construct in Geocoder 8.2
Same name and namespace in other branches
- 8.3 src/ProviderUsingHandlerBase.php \Drupal\geocoder\ProviderUsingHandlerBase::__construct()
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Overrides ProviderBase::__construct
1 call to ProviderUsingHandlerBase::__construct()
- ProviderUsingHandlerWithAdapterBase::__construct in src/
ProviderUsingHandlerWithAdapterBase.php - Constructs a geocoder provider plugin object.
1 method overrides ProviderUsingHandlerBase::__construct()
- ProviderUsingHandlerWithAdapterBase::__construct in src/
ProviderUsingHandlerWithAdapterBase.php - Constructs a geocoder provider plugin object.
File
- src/
ProviderUsingHandlerBase.php, line 26
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) {
// 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);
if (empty($plugin_definition['handler'])) {
throw new InvalidPluginDefinitionException($plugin_id, "Plugin '{$plugin_id}' should define an handler.");
}
}