namespace Drupal\user\Plugin\Validation\Constraint

Same name in other branches
  1. 11.x Drupal\user\Plugin\Validation\Constraint
  2. 9 Drupal\user\Plugin\Validation\Constraint
  3. 8.9.x Drupal\user\Plugin\Validation\Constraint
Object name File name Summary
ProtectedUserFieldConstraint core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraint.php Checks if the plain text password is provided for editing a protected field.
ProtectedUserFieldConstraintValidator core/modules/user/src/Plugin/Validation/Constraint/ProtectedUserFieldConstraintValidator.php Validates the ProtectedUserFieldConstraint constraint.
UserMailRequired core/modules/user/src/Plugin/Validation/Constraint/UserMailRequired.php Checks if the user's email address is provided if required.
UserMailRequiredValidator core/modules/user/src/Plugin/Validation/Constraint/UserMailRequiredValidator.php Checks if the user's email address is provided if required.
UserMailUnique core/modules/user/src/Plugin/Validation/Constraint/UserMailUnique.php Checks if a user's email address is unique on the site.
UserNameConstraint core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraint.php Checks if a value is a valid user name.
UserNameConstraintValidator core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php Validates the UserName constraint.
UserNameUnique core/modules/user/src/Plugin/Validation/Constraint/UserNameUnique.php Checks if a user name is unique on the site.

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