You are here

protected function GeolocationField::documentSelfTokens in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 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\field

Code

protected function documentSelfTokens(&$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.');
}