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.

CommentFileSizeAuthor
#2 entity_bundle_filter-2646892-2.patch3.21 KBvasike
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vasike created an issue. See original summary.

vasike’s picture

there 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.

vasike’s picture

Status: Active » Needs review
bojanz’s picture

Title: Entity bundle filter » Create an entity bundle filter
bojanz’s picture

Status: Needs review » Fixed

Fixed the known issue, committed. Thanks!

  • bojanz committed 247cf8a on 8.x-2.x authored by vasike
    Issue #2646892 by vasike: Create an entity bundle filter
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.