interface CompositeConstraintInterface
An interface to provide a bridge to Symfony composite constraints.
Hierarchy
- interface \Drupal\Core\Validation\CompositeConstraintInterface
Expanded class hierarchy of CompositeConstraintInterface
All classes that implement CompositeConstraintInterface
2 files declare their use of CompositeConstraintInterface
- AtLeastOneOfConstraint.php in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AtLeastOneOfConstraint.php - SequentiallyConstraint.php in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ SequentiallyConstraint.php
File
-
core/
lib/ Drupal/ Core/ Validation/ CompositeConstraintInterface.php, line 8
Namespace
Drupal\Core\ValidationView source
interface CompositeConstraintInterface {
/**
* Returns the name of the property or properties that contain constraints.
*
* This method should be a static implementation of
* Composite::getCompositeOption().
*
* @return array|string
* The name of the property or properties that contain constraints.
*
* @see \Symfony\Component\Validator\Constraints\Composite::getCompositeOption()
*/
public static function getCompositeOptionStatic() : array|string;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.