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
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:
- 3558181-instantiate-a-composite
changes, plain diff MR !13854
Comments
Comment #2
alexpottEnded up doing this in #3521131: Add support for Sequentially constraint because it proved too easy and the idea came from that issue.