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

Same name in other branches
  1. 11.x Drupal\Core\Validation\Plugin\Validation\Constraint
  2. 9 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.
CountryCodeConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/CountryCodeConstraint.php
EmailConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailConstraint.php Count constraint.
EmailValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EmailValidator.php Email constraint.
EntityBundleExistsConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraint.php Checks if a bundle exists on a certain content entity type.
EntityBundleExistsConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/EntityBundleExistsConstraintValidator.php Validates that a bundle exists on a certain content entity type.
FullyValidatableConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/FullyValidatableConstraint.php Constraint for fully validatable config schema type.
FullyValidatableConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/FullyValidatableConstraintValidator.php FullyValidatable 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.
ValidKeysConstraint core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraint.php Checks that all the keys of a mapping are valid and required keys present.
ValidKeysConstraintValidator core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/ValidKeysConstraintValidator.php Validates the ValidKeys constraint.

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