text-with-title-accordion.html.twig in Text with Title Field 8
<div class="panel-group accordion" role="tablist" aria-multiselectable="true" id="{{ id }}"> {% for panel in panels %} {{ panel }} {% endfor %} </div>
1 theme call to text-with-title-accordion.html.twig
- TextWithTitleAccordionFormatter::view in src/
Plugin/ Field/ FieldFormatter/ TextWithTitleAccordionFormatter.php - Overide the view method so we can wrap the result in the accordion markup.
File
templates/text-with-title-accordion.html.twigView source
- <div class="panel-group accordion" role="tablist" aria-multiselectable="true" id="{{ id }}">
- {% for panel in panels %}
- {{ panel }}
- {% endfor %}
-
- </div>