UserMailUnique.php in Zircon Profile 8
Same filename and directory in other branches
Namespace
Drupal\user\Plugin\Validation\ConstraintFile
core/modules/user/src/Plugin/Validation/Constraint/UserMailUnique.phpView source
<?php
/**
* @file
* Contains \Drupal\user\Plugin\Validation\Constraint\UserMailUnique.
*/
namespace Drupal\user\Plugin\Validation\Constraint;
use Drupal\Core\Validation\Plugin\Validation\Constraint\UniqueFieldConstraint;
/**
* Checks if a user's email address is unique on the site.
*
* @Constraint(
* id = "UserMailUnique",
* label = @Translation("User email unique", context = "Validation")
* )
*/
class UserMailUnique extends UniqueFieldConstraint {
public $message = 'The email address %value is already taken.';
}
Classes
Name | Description |
---|---|
UserMailUnique | Checks if a user's email address is unique on the site. |