You are here

constant UserInterface::USERNAME_MAX_LENGTH in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::USERNAME_MAX_LENGTH
  2. 9 core/modules/user/src/UserInterface.php \Drupal\user\UserInterface::USERNAME_MAX_LENGTH

Maximum length of username text field.

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

File

core/modules/user/src/UserInterface.php, line 21

Class

UserInterface
Provides an interface defining a user entity.

Namespace

Drupal\user

Code

const USERNAME_MAX_LENGTH = 60;