You are here

public function GeofieldProximityField::__construct in Geofield 8

Constructs the GeofieldProximityField 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/field/GeofieldProximityField.php, line 64

Class

GeofieldProximityField
Field handler to render a Geofield proximity in Views.

Namespace

Drupal\geofield\Plugin\views\field

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;
}