You are here

public function GeocodeOriginAutocomplete::__construct in Geocoder 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/GeofieldProximitySource/deprecated/GeocodeOriginAutocomplete.php \Drupal\geocoder\Plugin\GeofieldProximitySource\deprecated\GeocodeOriginAutocomplete::__construct()

Constructs a GeocodeOrigin 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\geocoder\Geocoder $geocoder: The Geocoder Service.

\Drupal\geocoder\ProviderPluginManager $providerPluginManager: The Providers Plugin Manager.

\Drupal\geocoder\FormatterPluginManager $formatterPluginManager: The Providers Plugin Manager.

Overrides GeocodeOrigin::__construct

File

src/Plugin/GeofieldProximitySource/deprecated/GeocodeOriginAutocomplete.php, line 42

Class

GeocodeOriginAutocomplete
Defines 'Geocode Origin, with Autocomplete' proximity source plugin.

Namespace

Drupal\geocoder\Plugin\GeofieldProximitySource\deprecated

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, Geocoder $geocoder, ProviderPluginManager $providerPluginManager, FormatterPluginManager $formatterPluginManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition, $geocoder, $providerPluginManager, $formatterPluginManager);
  $this->useAutocomplete = isset($configuration['use_autocomplete']) ? $configuration['use_autocomplete'] : 1;
}