Search for all

  1. Search 7.x for all
  2. Search 9.5.x for all
  3. Search 8.9.x for all
  4. Search 11.x for all
  5. Other projects
Title Object type File name Summary
AccountInterface::getEmail function core/lib/Drupal/Core/Session/AccountInterface.php Returns the email address of this account.
AccountInterface::getLastAccessedTime function core/lib/Drupal/Core/Session/AccountInterface.php The timestamp when the account last accessed the site.
AccountInterface::getPreferredAdminLangcode function core/lib/Drupal/Core/Session/AccountInterface.php Returns the preferred administrative language code of the account.
AccountInterface::getPreferredLangcode function core/lib/Drupal/Core/Session/AccountInterface.php Returns the preferred language code of the account.
AccountInterface::getRoles function core/lib/Drupal/Core/Session/AccountInterface.php Returns a list of roles.
AccountInterface::getTimeZone function core/lib/Drupal/Core/Session/AccountInterface.php Returns the timezone of this account.
AccountInterface::hasPermission function core/lib/Drupal/Core/Session/AccountInterface.php Checks whether a user has a certain permission.
AccountInterface::id function core/lib/Drupal/Core/Session/AccountInterface.php Returns the user ID or 0 for anonymous.
AccountInterface::isAnonymous function core/lib/Drupal/Core/Session/AccountInterface.php Returns TRUE if the account is anonymous.
AccountInterface::isAuthenticated function core/lib/Drupal/Core/Session/AccountInterface.php Returns TRUE if the account is authenticated.
AccountPermissionsCacheContext class core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Defines the AccountPermissionsCacheContext service, for "per permission" caching.
AccountPermissionsCacheContext.php file core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
AccountPermissionsCacheContext::$permissionsHashGenerator property core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php The permissions hash generator.
AccountPermissionsCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Gets the cacheability metadata for the context.
AccountPermissionsCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Returns the string representation of the cache context.
AccountPermissionsCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Returns the label of the cache context.
AccountPermissionsCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Constructs a new UserCacheContext service.
AccountProxy class core/lib/Drupal/Core/Session/AccountProxy.php A proxied implementation of AccountInterface.
AccountProxy.php file core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::$account property core/lib/Drupal/Core/Session/AccountProxy.php The instantiated account.
AccountProxy::$eventDispatcher property core/lib/Drupal/Core/Session/AccountProxy.php Event dispatcher.
AccountProxy::$id property core/lib/Drupal/Core/Session/AccountProxy.php Account id.
AccountProxy::getAccount function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getAccountName function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getDisplayName function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getEmail function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getLastAccessedTime function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getPreferredAdminLangcode function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getPreferredLangcode function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getRoles function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::getTimeZone function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::hasPermission function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::hasRole function core/lib/Drupal/Core/Session/AccountProxy.php Whether a user has a certain role.
AccountProxy::id function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::isAnonymous function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::isAuthenticated function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::loadUserEntity function core/lib/Drupal/Core/Session/AccountProxy.php Load a user entity.
AccountProxy::setAccount function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::setInitialAccountId function core/lib/Drupal/Core/Session/AccountProxy.php
AccountProxy::__construct function core/lib/Drupal/Core/Session/AccountProxy.php AccountProxy constructor.
AccountProxyInterface interface core/lib/Drupal/Core/Session/AccountProxyInterface.php Defines an interface for a service which has the current account stored.
AccountProxyInterface.php file core/lib/Drupal/Core/Session/AccountProxyInterface.php
AccountProxyInterface::getAccount function core/lib/Drupal/Core/Session/AccountProxyInterface.php Gets the currently wrapped account.
AccountProxyInterface::setAccount function core/lib/Drupal/Core/Session/AccountProxyInterface.php Sets the currently wrapped account.
AccountProxyInterface::setInitialAccountId function core/lib/Drupal/Core/Session/AccountProxyInterface.php Sets the id of the initial account.
AccountProxyTest class core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @coversDefaultClass \Drupal\Core\Session\AccountProxy
@group Session
AccountProxyTest.php file core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php
AccountProxyTest::testHasRole function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::hasRole
AccountProxyTest::testId function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::id
@covers ::setInitialAccountId
AccountProxyTest::testSetInitialAccountIdException function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::setInitialAccountId

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