facets-result-item.html.twig 666 Bytes
Newer Older
1 2 3 4 5 6 7
{#
/**
 * @file
 * Default theme implementation of a facet result item.
 *
 * Available variables:
 * - value: The item value.
8
 * - raw_value: The raw item value.
9 10
 * - show_count: If this facet provides count.
 * - count: The amount of results.
11
 * - is_active: The item is active.
12 13 14
 * - facet: The facet for this result item.
 *   - id: the machine name for the facet.
 *   - label: The facet label.
15 16 17 18
 *
 * @ingroup themeable
 */
#}
19 20 21 22 23 24 25
{% if is_active %}
  <span class="facet-item__status js-facet-deactivate">(-)</span>
{% endif %}
<span class="facet-item__value">{{ value }}</span>
{% if show_count %}
  <span class="facet-item__count">({{ count }})</span>
{% endif %}