hms-natural-language.html.twig in HMS Field 8
{% for key,formatted_value in formatted_values %}
<span class="hms__{{ labels[key]['label multiple'] }}">{{- formatted_value -}}
{% if (loop.index <= loop.length-2) %}
{{- separator -}}
{% endif %}
{% if (loop.index == loop.length-1) %}
{{- last_separator -}}
{% endif %}
</span>
{% endfor %}
File
templates/hms-natural-language.html.twig
View source
- {% for key,formatted_value in formatted_values %}
- <span class="hms__{{ labels[key]['label multiple'] }}">{{- formatted_value -}}
- {% if (loop.index <= loop.length-2) %}
- {{- separator -}}
- {% endif %}
- {% if (loop.index == loop.length-1) %}
- {{- last_separator -}}
- {% endif %}
- </span>
- {% endfor %}
-