geolocation-latlng-formatter.html.twig in Geolocation Field 8.3
Same filename and directory in other branches
Default microdata theme implementation for a geolocation with latitude, longitude.
Available variables:
- lat: The latitude value.
- lng: The longitude value.
See also
1 theme call to geolocation-latlng-formatter.html.twig
- GeolocationLatlngFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ GeolocationLatlngFormatter.php - Builds a renderable array for a field value.
File
templates/geolocation-latlng-formatter.html.twigView source
- {#
- /**
- * @file
- * Default microdata theme implementation for a geolocation with latitude, longitude.
- *
- * Available variables:
- * - lat: The latitude value.
- * - lng: The longitude value.
- *
- * @see template_preprocess()
- *
- * @ingroup themeable
- */
- #}
- <span typeof="Place">
- <span property="geo" typeof="GeoCoordinates">
- <meta property="latitude" content="{{ lat }}">
- <meta property="longitude" content="{{ lng }}">
- </span>
- <span class="geolocation-latlng">{{ lat }}, {{ lng }}</span>
- </span>