You are here

constant USERNAME_MAX_LENGTH in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/user.module \USERNAME_MAX_LENGTH

Maximum length of username text field.

Keep this under 191 characters so we can use a unique constraint in MySQL.

7 uses of USERNAME_MAX_LENGTH
AccountForm::form in core/modules/user/src/AccountForm.php
Gets the actual form array to be built.
EntityUser::processStubRow in core/modules/user/src/Plugin/migrate/destination/EntityUser.php
Do as much population of the stub row as we can.
SiteConfigureForm::buildForm in core/lib/Drupal/Core/Installer/Form/SiteConfigureForm.php
Form constructor.
UserLoginForm::buildForm in core/modules/user/src/Form/UserLoginForm.php
Form constructor.
UserNameConstraintValidator::validate in core/modules/user/src/Plugin/Validation/Constraint/UserNameConstraintValidator.php
Checks if the passed value is valid.

... See full list

File

core/modules/user/user.module, line 31
Enables the user registration and login system.

Code

const USERNAME_MAX_LENGTH = 60;