You are here

public function GeocoderBase::__construct in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 src/GeocoderBase.php \Drupal\geolocation\GeocoderBase::__construct()
  2. 8.2 src/GeocoderBase.php \Drupal\geolocation\GeocoderBase::__construct()

Constructs a new GeocoderBase 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\Config $config: The 'geolocation.settings' config.

Overrides PluginBase::__construct

File

src/GeocoderBase.php, line 37

Class

GeocoderBase
Class GeocoderBase.

Namespace

Drupal\geolocation

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Config $config) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->geolocationSettings = $config;
}