You are here

public function ProviderBase::__construct in Geocoder 8.2

Same name and namespace in other branches
  1. 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()
ProviderUsingHandlerBase::__construct in src/ProviderUsingHandlerBase.php
1 method overrides ProviderBase::__construct()
ProviderUsingHandlerBase::__construct in src/ProviderUsingHandlerBase.php

File

src/ProviderBase.php, line 44

Class

ProviderBase
Provides a base class for providers using handlers.

Namespace

Drupal\geocoder

Code

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;
}