public function AccountProxy::getAccountName in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Session/AccountProxy.php \Drupal\Core\Session\AccountProxy::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.
Overrides AccountInterface::getAccountName
1 call to AccountProxy::getAccountName()
- AccountProxy::getUsername in core/
lib/ Drupal/ Core/ Session/ AccountProxy.php - Returns the unaltered login name of this account.
File
- core/
lib/ Drupal/ Core/ Session/ AccountProxy.php, line 161
Class
- AccountProxy
- A proxied implementation of AccountInterface.
Namespace
Drupal\Core\SessionCode
public function getAccountName() {
return $this
->getAccount()
->getAccountName();
}