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.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | Screenshot from 2025-09-08 15-17-10.png | 400.86 KB | dhruv.mittal |
Issue fork domain-3479341
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 #2
ctgraham commentedWe are also interested in support for "is all of".
Class
Drupal\domain_access\Plugin\views\filter\DomainAccessFiltercould readily extendDrupal\views\Plugin\views\filter\ManyToOnerather thanDrupal\views\Plugin\views\filter\InOperator, but existing filters would have settings where theoperatorvalue is "in" and "not in", rather than "or" and "not", respectively. The change will need to migrate the existingoperatorvalues, or will need to support legacy values.Comment #4
mably commentedWouldn't it be better to migrate current InOperator to ManyToOne using an update hook?
Comment #5
mably commentedComment #6
dhruv.mittal commentedReviewing it
Comment #7
dhruv.mittal commentedAble to see the "Is all of" button after applying the MR
So moving it to RTBC
Thanks
Comment #8
mably commentedThanks a lot @dhruv.mittal for the review.
Have you been able to test the related update hook?
I would not want to break hundreds of sites because of a failing update.
Comment #10
mably commented