public function GeofieldProximityFilter::__construct in Geofield 8
Constructs the GeofieldProximityFilter 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\Core\Render\RendererInterface $renderer: The renderer.
\Drupal\geofield\Plugin\GeofieldProximitySourceManager $proximity_source_manager: The Geofield Proximity Source manager service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ filter/ GeofieldProximityFilter.php, line 102
Class
- GeofieldProximityFilter
- Field handler to filter Geofields by proximity.
Namespace
Drupal\geofield\Plugin\views\filterCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RendererInterface $renderer, GeofieldProximitySourceManager $proximity_source_manager, RequestStack $request_stack) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->renderer = $renderer;
$this->proximitySourceManager = $proximity_source_manager;
$this->geofieldRadiusOptions = geofield_radius_options();
$this->request = $request_stack;
}