You are here

facets-block.html.twig in Facets Block 8

{% for facet in facets %}
  <div {{ facet.attributes.addClass('facet-block') }}>
    {% if show_title %}
      <p class="facet-block__title">{{ facet.title }}</p>
    {% endif %}
    <div class="facet-block__content">{{ facet.content }}</div>
  </div>
{% endfor %}

File

templates/facets-block.html.twig
View source
  1. {% for facet in facets %}
  2. <div {{ facet.attributes.addClass('facet-block') }}>
  3. {% if show_title %}
  4. <p class="facet-block__title">{{ facet.title }}</p>
  5. {% endif %}
  6. <div class="facet-block__content">{{ facet.content }}</div>
  7. </div>
  8. {% endfor %}