You are here

class UserMailUnique in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/src/Plugin/Validation/Constraint/UserMailUnique.php \Drupal\user\Plugin\Validation\Constraint\UserMailUnique

Checks if a user's email address is unique on the site.

Plugin annotation


@Constraint(
  id = "UserMailUnique",
  label = @Translation("User email unique", context = "Validation")
)

Hierarchy

  • class \Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint extends \Symfony\Component\Validator\Constraint

Expanded class hierarchy of UserMailUnique

File

core/modules/user/src/Plugin/Validation/Constraint/UserMailUnique.php, line 15

Namespace

Drupal\user\Plugin\Validation\Constraint
View source
class UserMailUnique extends UniqueFieldConstraint {
  public $message = 'The email address %value is already taken.';

}

Members