protected function GeolocationField::documentSelfTokens in Geolocation Field 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/views/field/GeolocationField.php \Drupal\geolocation\Plugin\views\field\GeolocationField::documentSelfTokens()
Document any special tokens this field might use for itself.
Overrides EntityField::documentSelfTokens
See also
addSelfTokens()
File
- src/
Plugin/ views/ field/ GeolocationField.php, line 31
Class
- GeolocationField
- Field handler for geolocaiton field.
Namespace
Drupal\geolocation\Plugin\views\fieldCode
protected function documentSelfTokens(&$tokens) {
$tokens = parent::documentSelfTokens($tokens);
$tokens['{{ ' . $this->options['id'] . '__lat_sex }}'] = $this
->t('Latitude in sexagesimal notation.');
$tokens['{{ ' . $this->options['id'] . '__lng_sex }}'] = $this
->t('Longitude in sexagesimal notation.');
}