bf2e22379992ab1fa1728928645f2c790e14be95
[yaffs-website] / web / core / lib / Drupal / Core / Validation / Plugin / Validation / Constraint / UuidConstraint.php
1 <?php
2
3 namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
4
5 use Symfony\Component\Validator\Constraints\Uuid;
6 use Symfony\Component\Validator\Constraints\UuidValidator;
7
8 /**
9  * Validates a UUID.
10  *
11  * @Constraint(
12  *   id = "Uuid",
13  *   label = @Translation("Universally Unique Identifier", context = "Validation"),
14  * )
15  */
16 class UuidConstraint extends Uuid {
17
18   /**
19    * {@inheritdoc}
20    */
21   public function validatedBy() {
22     return UuidValidator::class;
23   }
24
25 }