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()

2 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.
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\Validation

Code

public static function getCompositeOptionStatic() : array|string;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.