public function GeofieldProximitySourceInterface::setUnits in Geofield 8
Set the units to perform the calculation in.
Parameters
string $units: The name of the units constant to be used or string representation of it.
1 method overrides GeofieldProximitySourceInterface::setUnits()
- GeofieldProximitySourceBase::setUnits in src/
Plugin/ GeofieldProximitySourceBase.php - Set the units to perform the calculation in.
File
- src/
Plugin/ GeofieldProximitySourceInterface.php, line 74
Class
- GeofieldProximitySourceInterface
- Defines an interface for Geofield Proximity Source plugins.
Namespace
Drupal\geofield\PluginCode
public function setUnits($units);