function AccountProxyInterface::getAccount

Same name in other branches
  1. 9 core/lib/Drupal/Core/Session/AccountProxyInterface.php \Drupal\Core\Session\AccountProxyInterface::getAccount()
  2. 8.9.x core/lib/Drupal/Core/Session/AccountProxyInterface.php \Drupal\Core\Session\AccountProxyInterface::getAccount()
  3. 11.x core/lib/Drupal/Core/Session/AccountProxyInterface.php \Drupal\Core\Session\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 38

Class

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

Namespace

Drupal\Core\Session

Code

public function getAccount();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.