You are here

public function GoogleGeocoderBase::__construct in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 modules/geolocation_google_maps/src/GoogleGeocoderBase.php \Drupal\geolocation_google_maps\GoogleGeocoderBase::__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.

\Drupal\geolocation\MapProviderManager $map_provider_manager: Map provider management.

Overrides GeocoderBase::__construct

File

modules/geolocation_google_maps/src/GoogleGeocoderBase.php, line 40

Class

GoogleGeocoderBase
Base class.

Namespace

Drupal\geolocation_google_maps

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, GeocoderCountryFormattingManager $geocoder_country_formatter_manager, MapProviderManager $map_provider_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $geocoder_country_formatter_manager);
  $this->googleMapsProvider = $map_provider_manager
    ->getMapProvider('google_maps');
}