public function AccountProxyInterface::getAccount

public AccountProxyInterface::getAccount()

Gets the currently wrapped account.

Return value

\Drupal\Core\Session\AccountInterface The current account.

File

core/lib/Drupal/Core/Session/AccountProxyInterface.php, line 33

Class

AccountProxyInterface
Defines an interface for a service which has the current account stored.

Namespace

Drupal\Core\Session

Code

public function getAccount();

© 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!AccountProxyInterface.php/function/AccountProxyInterface::getAccount/8.1.x