Problem/Motivation

Conditions API include an option so any condition can be negated by default.

In the case of those conditions with multiple selection (e.g. User Role), those are matched if any of the options match.
It would be great allowing to select if we want ANY match or ALL matches.

This would translate to instead of a roleX OR roleY, the condition will match if roleX AND roleY if the flag is true.

Proposed resolution

Conditions should have a flag for ANY/ALL. Default will be ANY.

Remaining tasks

TBD

User interface changes

TBD

Added all bool to config schema `type: condition.plugin`

Introduced terminology

None.

API changes

New flag.

Data model changes

New config schema, new default, needs upgrade path.

Release notes snippet

Comments

penyaskito created an issue. See original summary.

penyaskito’s picture

Issue tags: +condition plugins

Wish we had a component, using a tag meanwhile.

owenbush’s picture

+1 for this one.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.