UuidConstraint.php
Same filename in other branches
Namespace
Drupal\Core\Validation\Plugin\Validation\ConstraintFile
-
core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ UuidConstraint.php
View source
<?php
namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Validation\Attribute\Constraint;
use Symfony\Component\Validator\Constraints\Uuid;
use Symfony\Component\Validator\Constraints\UuidValidator;
/**
* Validates a UUID.
*/
class UuidConstraint extends Uuid {
/**
* {@inheritdoc}
*/
public function validatedBy() : string {
return UuidValidator::class;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
UuidConstraint | Validates a UUID. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.