double-field-item.html.twig in Double Field 4.x
Same filename and directory in other branches
{% for subfield, subitem in item %} {% if subitem -%} <div class="double-field-{{ subfield }}"> {{- subitem|nl2br -}} </div> {% endif %} {% endfor %}
2 theme calls to double-field-item.html.twig
- HtmlList::viewElements in src/
Plugin/ Field/ FieldFormatter/ HtmlList.php - Builds a renderable array for a field value.
- UnformattedList::viewElements in src/
Plugin/ Field/ FieldFormatter/ UnformattedList.php - Builds a renderable array for a field value.
File
templates/double-field-item.html.twigView source
- {% for subfield, subitem in item %}
- {% if subitem -%}
- <div class="double-field-{{ subfield }}">
- {{- subitem|nl2br -}}
- </div>
- {% endif %}
- {% endfor %}