UserNameConstraint::$spaceBeginMessage
The violation message when the username begins with whitespace.
Type: string
File
-
core/
modules/ user/ src/ Plugin/ Validation/ Constraint/ UserNameConstraint.php, line 30
Class
- UserNameConstraint
- Checks if a value is a valid user name.
Namespace
Drupal\user\Plugin\Validation\ConstraintCode
public $spaceBeginMessage = 'The username cannot begin with a space.';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.