You are here

public function ProximityField::__construct in Geolocation Field 8

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

Constructs a Handler 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\geolocation\GeolocationCore $geolocation_core: The GeolocationCore object.

Overrides HandlerBase::__construct

File

src/Plugin/views/field/ProximityField.php, line 41

Class

ProximityField
Field handler for geolocaiton field.

Namespace

Drupal\geolocation\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, GeolocationCore $geolocation_core) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->geolocationCore = $geolocation_core;
}