You are here

double-field-item.html.twig in Double Field 4.x

Same filename and directory in other branches
  1. 8.3 templates/double-field-item.html.twig
{% for subfield, subitem in item %}
  {% if subitem -%}
    <div class="double-field-{{ subfield }}">
      {{- subitem|nl2br -}}
    </div>
  {% endif %}
{% endfor %}

File

templates/double-field-item.html.twig
View source
  1. {% for subfield, subitem in item %}
  2. {% if subitem -%}
  3. <div class="double-field-{{ subfield }}">
  4. {{- subitem|nl2br -}}
  5. </div>
  6. {% endif %}
  7. {% endfor %}