Problem/Motivation

At the moment a composite constraint has to instantiate it's own constraints but it would be better if it did not... see \Drupal\Core\Validation\Plugin\Validation\Constraint\AtLeastOneOfConstraint::create()

Proposed resolution

Add a composite constraint interface for the plugin manager to use.

Remaining tasks

User interface changes

None

Introduced terminology

N/a

API changes

New interface

Data model changes

None

Release notes snippet

N/a

Issue fork drupal-3558181

Command icon 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

alexpott created an issue. See original summary.

alexpott’s picture

Status: Active » Closed (duplicate)

Ended up doing this in #3521131: Add support for Sequentially constraint because it proved too easy and the idea came from that issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.