You are here

public function GeofieldProximityArgument::__construct in Geofield 8

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\geofield\WktGenerator $wkt_generator: The WktGenerator object.

\Drupal\geofield\Plugin\GeofieldProximitySourceManager $proximity_source_manager: The Geofield Proximity Source manager service.

Overrides HandlerBase::__construct

File

src/Plugin/views/argument/GeofieldProximityArgument.php, line 118

Class

GeofieldProximityArgument
Argument handler for geofield proximity.

Namespace

Drupal\geofield\Plugin\views\argument

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, WktGenerator $wkt_generator, GeofieldProximitySourceManager $proximity_source_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->wktGenerator = $wkt_generator;
  $this->proximitySourceManager = $proximity_source_manager;
  $this->units = $this
    ->decodeUnits();
}