function UserNameUnique::__construct
Attributes
#[HasNamedArguments]
Overrides UniqueFieldConstraint::__construct
File
-
core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ UserNameUnique.php, line 19
Class
- UserNameUnique
- Checks if a user name is unique on the site.
Namespace
Drupal\user\Plugin\Validation\ConstraintCode
public function __construct(mixed $options = NULL, ?bool $caseSensitive = NULL, $message = 'The username %value is already taken.', ?array $groups = NULL, mixed $payload = NULL) {
parent::__construct($options, $caseSensitive, $message, $groups, $payload);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.