field--profile--field-profile-nationality.html.twig 259 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
{% if items is not empty %}
  <h5>{{ label }}</h5>

  {% set classes = ['badge', 'badge--pill', 'badge--large', 'badge-default'] %}

  {% for item in items %}
    <div{{ item.attributes.addClass(classes) }}>{{ item.content }}</div>
  {% endfor %}
{% endif %}