public static function WebformLocationPlaces::getLocationAttributes in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Element/WebformLocationPlaces.php \Drupal\webform\Element\WebformLocationPlaces::getLocationAttributes()
Get location attributes.
Return value
array An associative array container location attribute name and titles.
Overrides WebformLocationBase::getLocationAttributes
File
- src/
Element/ WebformLocationPlaces.php, line 32
Class
- WebformLocationPlaces
- Provides a webform element for a location places element.
Namespace
Drupal\webform\ElementCode
public static function getLocationAttributes() {
return [
'lat' => t('Latitude'),
'lng' => t('Longitude'),
'name' => t('Name'),
'city' => t('City'),
'country' => t('Country'),
'country_code' => t('Country Code'),
'administrative' => t('State/Province'),
'county' => t('County'),
'suburb' => t('Suburb'),
'postcode' => t('Postal Code'),
];
}