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\userCode
const USERNAME_MAX_LENGTH = 60;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.