function MappingCollectionConstraint::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.

Overrides CompositeConstraintInterface::getCompositeOptionStatic

File

core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/MappingCollectionConstraint.php, line 27

Class

MappingCollectionConstraint
Checks that at least one of the given constraints is satisfied.

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint

Code

public static function getCompositeOptionStatic() : string {
  return 'fields';
}

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