public UserInterface::setUsername($username)
Sets the username of this account.
Parameters
string $username: The new user name.
Return value
\Drupal\user\UserInterface The called user entity.
File
- core/modules/user/src/UserInterface.php, line 52
Class
- UserInterface
- Provides an interface defining a user entity.
Namespace
Drupal\user
Code
public function setUsername($username);
Please login to continue.