facets-summary-facet.html.twig in Facets 8
Default theme implementation to display source summary facet item.
Accepts suggestions as: facets-source-summary-facet--{facet_id}.
Available variables:
- label: The label configured by the user.
- separator: The separator user to concatenate facet active items.
- items: An array of associative arrays, each having 2 keys: label, count.
- facet_id: The facet id.
- facet_admin_label: The facet administrative label.
1 theme call to facets-summary-facet.html.twig
- ShowSummaryProcessor::build in modules/
facets_summary/ src/ Plugin/ facets_summary/ processor/ ShowSummaryProcessor.php - Alter the items in the summary before creating the renderable array.
File
modules/facets_summary/templates/facets-summary-facet.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation to display source summary facet item.
- *
- * Accepts suggestions as: facets-source-summary-facet--{facet_id}.
- *
- * Available variables:
- * - label: The label configured by the user.
- * - separator: The separator user to concatenate facet active items.
- * - items: An array of associative arrays, each having 2 keys: label, count.
- * - facet_id: The facet id.
- * - facet_admin_label: The facet administrative label.
- */
- #}
- <span class="source-summary-item source-summary-item-{{ facet_id | replace({"_": "-"}) }}">
- {% if items %}
- {{ label }}: {{ items|safe_join(separator) }}
- {% endif %}
- </span>