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.
Problem/Motivation
To enable different theming or facet customizations it should be possible to keep a parent active if a child gets selected in a hierarchy facet. This optional behavior should not influence the search result.
Steps to reproduce
Proposed resolution
Add a keep_hierarchy_parents_active
settings option.
Remaining tasks
User interface changes
A new checkox in the facet edit form.
API changes
Getter and setter in FacetInterface.
Data model changes
New field in schema.
Issue fork facets-3204072
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
borisson_This looks great, I'd love to have test-coverage for this as well. I'm not sure if we need to make an upgrade path or default value for the config change?
Comment #4
mkalkbrennerI don't think that an upgrade path is required as the default value is FALSE.
I add tests if there's acceptance ;-)
Comment #5
mkalkbrennerComment #6
borisson_Ok, looks great.
Comment #8
borisson_Merged through the gitlab UI, thank you very much @mkalkbrenner!
Comment #9
mkalkbrennerThanks for the review.