Add "Is all of" exposed filter (extend ManyToOne filter plugin)

Created on 8 October 2024, 4 months ago

Drupal Version

Drupal 10

Domain module version

2.0.x-dev as selected above.

Expected Behavior

[What did you try to do? What URL did you use to do it?]
I want to be able to select "is all of" in Views Exposed filter, to be able to filter content that belongs to both domains I am selecting, not "any of".

Actual Behavior

[What actually happened?]
"is all of" not available as an option for Domain but is for taxonomy.

Steps to reproduce

[A bullet list of steps to reproduce the error. Note if the error always happens or sometimes happens.]
- Edit the /admin/content view with the aim of extending the Exposed filter for domain to be able to add "is all of".
- Observed that this "is all of" option is not available.

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom therobyouknow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @therobyouknow
  • πŸ‡ΊπŸ‡ΈUnited States ctgraham

    We are also interested in support for "is all of".

    Class Drupal\domain_access\Plugin\views\filter\DomainAccessFilter could readily extend Drupal\views\Plugin\views\filter\ManyToOne rather than Drupal\views\Plugin\views\filter\InOperator, but existing filters would have settings where the operator value is "in" and "not in", rather than "or" and "not", respectively. The change will need to migrate the existing operator values, or will need to support legacy values.

  • Pipeline finished with Success
    15 days ago
    Total: 332s
    #396920
  • Pipeline finished with Success
    15 days ago
    Total: 210s
    #396932
Production build 0.71.5 2024