public function GeofieldProximitySourceBase::getUnitsOptions in Geofield 8
Get the list of valid options for units.
Return value
array The list of available unit types.
1 call to GeofieldProximitySourceBase::getUnitsOptions()
- GeofieldProximitySourceBase::setUnits in src/
Plugin/ GeofieldProximitySourceBase.php - Set the units to perform the calculation in.
File
- src/
Plugin/ GeofieldProximitySourceBase.php, line 114
Class
- GeofieldProximitySourceBase
- Base class for Geofield Proximity Source plugins.
Namespace
Drupal\geofield\PluginCode
public function getUnitsOptions() {
return array_keys(geofield_radius_options());
}