UuidConstraint.php in Drupal 9
Same filename and directory in other branches
File
core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.phpView source
<?php
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Symfony\Component\Validator\Constraints\Uuid;
use Symfony\Component\Validator\Constraints\UuidValidator;
/**
* Validates a UUID.
*
* @Constraint(
* id = "Uuid",
* label = @Translation("Universally Unique Identifier", context = "Validation"),
* )
*/
class UuidConstraint extends Uuid {
/**
* {@inheritdoc}
*/
public function validatedBy() {
return UuidValidator::class;
}
}
Classes
Name | Description |
---|---|
UuidConstraint | Validates a UUID. |