public function ProviderBase::__construct in Geocoder 8.2
Same name and namespace in other branches
- 8.3 src/ProviderBase.php \Drupal\geocoder\ProviderBase::__construct()
Constructs a geocoder provider plugin object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: The cache backend used to cache geocoding data.
Overrides PluginBase::__construct
1 call to ProviderBase::__construct()
1 method overrides ProviderBase::__construct()
File
- src/
ProviderBase.php, line 44
Class
- ProviderBase
- 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) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->configFactory = $config_factory;
$this->cacheBackend = $cache_backend;
}