class UserMailUnique in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Plugin/Validation/Constraint/UserMailUnique.php \Drupal\user\Plugin\Validation\Constraint\UserMailUnique
- 9 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
- class \Drupal\user\Plugin\Validation\Constraint\UserMailUnique
Expanded class hierarchy of UserMailUnique
1 string reference to 'UserMailUnique'
- User::baseFieldDefinitions in core/
modules/ user/ src/ Entity/ User.php
File
- core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ UserMailUnique.php, line 15
Namespace
Drupal\user\Plugin\Validation\ConstraintView source
class UserMailUnique extends UniqueFieldConstraint {
public $message = 'The email address %value is already taken.';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UniqueFieldConstraint:: |
public | function | ||
UserMailUnique:: |
public | property |
Overrides UniqueFieldConstraint:: |