UserNameConstraint::$multipleSpacesMessage

Same name in other branches
  1. 9 core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraint.php \Drupal\user\Plugin\Validation\Constraint\UserNameConstraint::multipleSpacesMessage
  2. 8.9.x core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraint.php \Drupal\user\Plugin\Validation\Constraint\UserNameConstraint::multipleSpacesMessage
  3. 10 core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraint.php \Drupal\user\Plugin\Validation\Constraint\UserNameConstraint::multipleSpacesMessage

Type: multipleSpacesMessage

File

core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraint.php, line 21

Class

UserNameConstraint
Checks if a value is a valid user name.

Namespace

Drupal\user\Plugin\Validation\Constraint

Code

public $multipleSpacesMessage = 'The username cannot contain multiple spaces in a row.';

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.