You are here

public function GeofieldProximitySort::__construct in Geofield 8

Constructs the GeofieldProximitySort 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\Plugin\GeofieldProximitySourceManager $proximity_source_manager: The Geofield Proximity Source manager service.

Overrides HandlerBase::__construct

File

src/Plugin/views/sort/GeofieldProximitySort.php, line 63

Class

GeofieldProximitySort
Field handler to sort Geofields by proximity.

Namespace

Drupal\geofield\Plugin\views\sort

Code

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