By alexpott on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.3.x
Introduced in version:
11.3.0
Issue links:
Description:
When implementing composite constraints in Drupal, the constraint class must implement \Drupal\Core\Validation\CompositeConstraintInterface. The public static method \Drupal\Core\Validation\CompositeConstraintInterface::getCompositeOptionStatic() is a copy of Symfony's \Symfony\Component\Validator\Constraints\Composite::getCompositeOption() method and allows the Drupal ConstraintManager to instantiate the nested constraints.
Impacts:
Module developers