public static function GeofieldLatLon::getComponents in Geofield 8
Components Getter.
Return value
array Components Array.
Overrides GeofieldElementBase::getComponents
File
- src/
Element/ GeofieldLatLon.php, line 17
Class
- GeofieldLatLon
- Provides a Geofield Lat Lon form element.
Namespace
Drupal\geofield\ElementCode
public static function getComponents() {
return [
'lat' => [
'title' => t('Latitude'),
'range' => 90,
],
'lon' => [
'title' => t('Longitude'),
'range' => 180,
],
];
}