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.
Create a custom Entity bundle filter that extends the Drupal core one.
With an extra setting to hide the exposed filter if there is only one bundle for the given entity type.
Similar approach was done for the Entity bundle field, only it was created from scratch.
After this filter is built, the existing commerce views with bundle/type filter need updates.
Comment | File | Size | Author |
---|---|---|---|
#2 | entity_bundle_filter-2646892-2.patch | 3.21 KB | vasike |
Comments
Comment #2
vasikethere is patch that implements this filter.
Known issue: The exposed filters submit button will be displayed if this filter is the only one exposed and hided.
Comment #3
vasikeComment #4
bojanz CreditAttribution: bojanz at Centarro commentedComment #5
bojanz CreditAttribution: bojanz at Centarro commentedFixed the known issue, committed. Thanks!