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