function AccountInterface::getAccountName
Same name in other branches
- 9 core/lib/Drupal/Core/Session/AccountInterface.php \Drupal\Core\Session\AccountInterface::getAccountName()
- 8.9.x core/lib/Drupal/Core/Session/AccountInterface.php \Drupal\Core\Session\AccountInterface::getAccountName()
- 11.x core/lib/Drupal/Core/Session/AccountInterface.php \Drupal\Core\Session\AccountInterface::getAccountName()
Returns the unaltered login name of this account.
Return value
string An unsanitized plain-text string with the name of this account that is used to log in. Only display this name to admins and to the user who owns this account, and only in the context of the name used to login. For any other display purposes, use \Drupal\Core\Session\AccountInterface::getDisplayName() instead.
File
-
core/
lib/ Drupal/ Core/ Session/ AccountInterface.php, line 115
Class
- AccountInterface
- Defines an account interface which represents the current user.
Namespace
Drupal\Core\SessionCode
public function getAccountName();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.