class UuidConstraint

Same name in other branches
  1. 9 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint
  2. 10 core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint
  3. 11.x core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php \Drupal\Core\Validation\Plugin\Validation\Constraint\UuidConstraint

Validates a UUID.

Plugin annotation


@Constraint(
  id = "Uuid",
  label = @Translation("Universally Unique Identifier", context = "Validation"),
)

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 16

Namespace

Drupal\Core\Validation\Plugin\Validation\Constraint
View source
class UuidConstraint extends Uuid {
    
    /**
     * {@inheritdoc}
     */
    public function validatedBy() {
        return UuidValidator::class;
    }

}

Members

Title Sort descending Modifiers Object type Summary
UuidConstraint::validatedBy public function

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