class UuidConstraint
Same name in other branches
- 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint
- 8.9.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint
- 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint
Validates a UUID.
Hierarchy
- class \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint extends \Symfony\Component\Validator\Constraints\Uuid
Expanded class hierarchy of UuidConstraint
File
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UuidConstraint.php, line 13
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintView source
class UuidConstraint extends Uuid {
/**
* {@inheritdoc}
*
* @return string
* The name of the class that validates this constraint.
*
* @todo Add method return type declaration.
* @see https://www.drupal.org/project/drupal/issues/3425150
*/
public function validatedBy() {
return UuidValidator::class;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
UuidConstraint::validatedBy | public | function | @todo Add method return type declaration. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.