You are here

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

File

templates/country-state-city.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default template for the 'plain' country state field formatter.
  5. *
  6. * Available variables:
  7. * - country
  8. * - state
  9. * - city
  10. *
  11. * @ingroup themeable
  12. */
  13. #}
  14. <div class="country-state-country" translate="no">
  15. {% if country %}
  16. {{ country }},
  17. {% endif %}
  18. {% if state %}
  19. {{ state }}
  20. {% endif %}
  21. {% if city %}
  22. ,{{ city }}
  23. {% endif %}
  24. </div>
  25. <!-- Add you custom twig html here -->