country.html.twig in Country, State and City Fields 8
Default template for the 'plain' country field formatter.
Available variables:
- country
3 theme calls to country.html.twig
- ContryFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ ContryFormatter.php - Builds a renderable array for a field value.
- ContryISO2Formatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ ContryISO2Formatter.php - Builds a renderable array for a field value.
- ContryISO3Formatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ ContryISO3Formatter.php - Builds a renderable array for a field value.
File
templates/country.html.twigView source
- {#
- /**
- * @file
- * Default template for the 'plain' country field formatter.
- *
- * Available variables:
- * - country
- *
- * @ingroup themeable
- */
- #}
- <div class="country" translate="no">
- {% if country %}
- {{ country }}
- {% endif %}
- </div>
- <!-- Add you custom twig html here -->