namespace Drupal\Core\Validation\Plugin\Validation\Constraint

Same name in other branches
  1. 11.x Drupal\Core\Validation\Plugin\Validation\Constraint
  2. 10 Drupal\Core\Validation\Plugin\Validation\Constraint
  3. 8.9.x Drupal\Core\Validation\Plugin\Validation\Constraint
Object name File name Summary
AllowedValuesConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraint.php Checks for the value being allowed.
AllowedValuesConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/AllowedValuesConstraintValidator.php Validates the AllowedValues constraint.
ComplexDataConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraint.php Complex data constraint.
ComplexDataConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ComplexDataConstraintValidator.php Validates complex data.
CountConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountConstraint.php Count constraint.
EmailConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailConstraint.php Count constraint.
IsNullConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraint.php Null constraint.
IsNullConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/IsNullConstraintValidator.php Null constraint validator.
LengthConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/LengthConstraint.php Length constraint.
NotNullConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraint.php NotNull constraint.
NotNullConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/NotNullConstraintValidator.php NotNull constraint validator.
PrimitiveTypeConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraint.php Supports validating all primitive types.
PrimitiveTypeConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/PrimitiveTypeConstraintValidator.php Validates the PrimitiveType constraint.
RangeConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraint.php Range constraint.
RangeConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RangeConstraintValidator.php Validator for the Drupal 'range' constraint.
RegexConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php Regex constraint.
UniqueFieldConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldConstraint.php Checks if an entity field has a unique value.
UniqueFieldValueValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UniqueFieldValueValidator.php Validates that a field is unique for the given entity type.
UuidConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/UuidConstraint.php Validates a UUID.

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