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

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.