AccountProxy::getAccountName
public function AccountProxy::getAccountName
public 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
File
- core/lib/Drupal/Core/Session/AccountProxy.php, line 123
Class
- AccountProxy
- A proxied implementation of AccountInterface.
Namespace
Drupal\Core\SessionCode
public function getAccountName() { return $this->getAccount()->getAccountName(); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!AccountProxy.php/function/AccountProxy::getAccountName/8.1.x