public function ProviderUsingHandlerWithAdapterBase::__construct in Geocoder 8.3
Same name and namespace in other branches
- 8.2 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.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The Drupal language manager service.
\Http\Client\HttpClient $http_adapter: The HTTP adapter.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Overrides ProviderUsingHandlerBase::__construct
1 call to ProviderUsingHandlerWithAdapterBase::__construct()
- ConfigurableProviderUsingHandlerWithAdapterBase::__construct in src/
ConfigurableProviderUsingHandlerWithAdapterBase.php - Constructs a new configurable geocoder provider using handlers.
1 method overrides ProviderUsingHandlerWithAdapterBase::__construct()
- ConfigurableProviderUsingHandlerWithAdapterBase::__construct in src/
ConfigurableProviderUsingHandlerWithAdapterBase.php - Constructs a new configurable geocoder provider using handlers.
File
- src/
ProviderUsingHandlerWithAdapterBase.php, line 43
Class
- ProviderUsingHandlerWithAdapterBase
- Provides a base class for providers using handlers with HTTP adapter.
Namespace
Drupal\geocoderCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager, HttpClient $http_adapter) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $config_factory, $cache_backend, $language_manager);
$this->httpAdapter = $http_adapter;
}