Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. AccountProxyInterface.php

function AccountProxyInterface::getAccount

Gets the currently wrapped account.

Return value

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

1 method overrides AccountProxyInterface::getAccount()
AccountProxy::getAccount in core/lib/Drupal/Core/Session/AccountProxy.php
Gets the currently wrapped 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();

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal