You are here

public function Geocoder::__construct in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/geolocation/LocationInput/Geocoder.php \Drupal\geolocation\Plugin\geolocation\LocationInput\Geocoder::__construct()

Geocoder constructor.

Parameters

array $configuration: Configuration.

string $plugin_id: Plugin ID.

mixed $plugin_definition: Plugin definition.

\Drupal\geolocation\GeocoderManager $geocoder_manager: Geocoder Manager.

Overrides PluginBase::__construct

File

src/Plugin/geolocation/LocationInput/Geocoder.php, line 41

Class

Geocoder
Location based proximity center.

Namespace

Drupal\geolocation\Plugin\geolocation\LocationInput

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, GeocoderManager $geocoder_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->geocoderManager = $geocoder_manager;
}