public function OriginFromProximityFilter::__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/ OriginFromProximityFilter.php, line 62
Class
- OriginFromProximityFilter
- Defines 'Geofield Custom Origin' plugin.
Namespace
Drupal\geofield\Plugin\GeofieldProximitySourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, GeofieldProximitySourceManager $proximitySourceManager) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->proximitySourceManager = $proximitySourceManager;
}