You are here

public function ContextProximityFilter::__construct in Geofield 8

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\geofield\Plugin\GeofieldProximitySourceManager $proximitySourceManager: The Geofield Proximity Source manager service.

Overrides PluginBase::__construct

File

src/Plugin/GeofieldProximitySource/ContextProximityFilter.php, line 60

Class

ContextProximityFilter
Defines 'Geofield Context Filter' plugin.

Namespace

Drupal\geofield\Plugin\GeofieldProximitySource

Code

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