Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Something one that would be useful would be a way of hiding all facets if there's only one result. While #2426693: Option to hide facets with only one count provides filters to hide the facets if there's only one matching item per facet, there's no way of telling within filter's execute() method whether one item in the $build array means only one item matched this facet's criteria or there's only one result in total.
Comments
Comment #1
DamienMcKennaComment #2
eugene.ilyin CreditAttribution: eugene.ilyin as a volunteer and at DrupalJedi commentedI think that it is a pretty special functionality and doesn't make sense implement it for D7 version now. But I think would be nice to report it for D8 version (module facets, not facetapi).