function CompositeConstraintInterface::getCompositeOptionStatic
Returns the name of the property or properties that contain constraints.
This method should be a static implementation of Composite::getCompositeOption().
Return value
array|string The name of the property or properties that contain constraints.
See also
\Symfony\Component\Validator\Constraints\Composite::getCompositeOption()
5 methods override CompositeConstraintInterface::getCompositeOptionStatic()
- AtLeastOneOfConstraint::getCompositeOptionStatic in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AtLeastOneOfConstraint.php - Returns the name of the property or properties that contain constraints.
- MappingCollectionConstraint::getCompositeOptionStatic in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ MappingCollectionConstraint.php - Returns the name of the property or properties that contain constraints.
- OptionalConstraint::getCompositeOptionStatic in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ OptionalConstraint.php - Returns the name of the property or properties that contain constraints.
- RequiredConstraint::getCompositeOptionStatic in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ RequiredConstraint.php - Returns the name of the property or properties that contain constraints.
- SequentiallyConstraint::getCompositeOptionStatic in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ SequentiallyConstraint.php - Returns the name of the property or properties that contain constraints.
File
-
core/
lib/ Drupal/ Core/ Validation/ CompositeConstraintInterface.php, line 21
Class
- CompositeConstraintInterface
- An interface to provide a bridge to Symfony composite constraints.
Namespace
Drupal\Core\ValidationCode
public static function getCompositeOptionStatic() : array|string;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.