Skip to content

Nestable condition groups - #19587

Draft
brandonkelly wants to merge 8 commits into
6.xfrom
feature/condition-rule-groups
Draft

Nestable condition groups#19587
brandonkelly wants to merge 8 commits into
6.xfrom
feature/condition-rule-groups

Conversation

@brandonkelly

@brandonkelly brandonkelly commented Sep 9, 2026

Copy link
Copy Markdown
Member

Description

Adds support for conditions to contain nestable groups of condition rules, which can be joined together with AND or OR operators.

Caution

This update contains breaking changes for plugins. Conditions must now implement a createGroup() method, and their getConditionRules() method will now return a ConditionGroupInterface object, rather than an array of condition rules.

Related issues

@brandonkelly brandonkelly changed the title Initial work on condition rule groups Condition rule groups (OR conditions) Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

No changed components detected in this Storybook.

resources/jsopen Storybook

No changed components detected in this Storybook.

Base automatically changed from feature/modifyQuery-refactor to 6.x September 9, 2026 10:52
# Conflicts:
#	src/Condition/BaseCondition.php
#	src/Condition/Contracts/ConditionInterface.php
#	src/Http/Controllers/ConditionsController.php
@brandonkelly brandonkelly changed the title Condition rule groups (OR conditions) Nestable condition groups Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant