You are here

public function GeocoderBase::__construct in Geolocation Field 8.2

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

GoogleGeocoderBase constructor.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\geolocation\GeocoderCountryFormattingManager $geocoder_country_formatter_manager: Country formatter manager.

Overrides PluginBase::__construct

1 call to GeocoderBase::__construct()
GoogleGeocoderBase::__construct in modules/geolocation_google_maps/src/GoogleGeocoderBase.php
GoogleGeocoderBase constructor.
1 method overrides GeocoderBase::__construct()
GoogleGeocoderBase::__construct in modules/geolocation_google_maps/src/GoogleGeocoderBase.php
GoogleGeocoderBase constructor.

File

src/GeocoderBase.php, line 35

Class

GeocoderBase
Class GeocoderBase.

Namespace

Drupal\geolocation

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, GeocoderCountryFormattingManager $geocoder_country_formatter_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->countryFormatterManager = $geocoder_country_formatter_manager;
}