You are here

public function ProviderUsingHandlerWithAdapterBase::__construct in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/ProviderUsingHandlerWithAdapterBase.php \Drupal\geocoder\ProviderUsingHandlerWithAdapterBase::__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.

\Ivory\HttpAdapter\HttpAdapterInterface $http_adapter: The HTTP adapter.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

Overrides ProviderUsingHandlerBase::__construct

File

src/ProviderUsingHandlerWithAdapterBase.php, line 40

Class

ProviderUsingHandlerWithAdapterBase
Provides a base class for providers using handlers with HTTP adapter.

Namespace

Drupal\geocoder

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, CacheBackendInterface $cache_backend, HttpAdapterInterface $http_adapter) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory, $cache_backend);
  $this->httpAdapter = $http_adapter;
}