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 10.3.x for all
  5. Other projects
Title Object type File name Summary
AccountProxy::id function core/lib/Drupal/Core/Session/AccountProxy.php Returns the user ID or 0 for anonymous.
AccountProxy::isAnonymous function core/lib/Drupal/Core/Session/AccountProxy.php Returns TRUE if the account is anonymous.
AccountProxy::isAuthenticated function core/lib/Drupal/Core/Session/AccountProxy.php Returns TRUE if the account is authenticated.
AccountProxy::loadUserEntity function core/lib/Drupal/Core/Session/AccountProxy.php Load a user entity.
AccountProxy::setAccount function core/lib/Drupal/Core/Session/AccountProxy.php Sets the currently wrapped account.
AccountProxy::setInitialAccountId function core/lib/Drupal/Core/Session/AccountProxy.php Sets the id of the initial account.
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[[api-linebreak]]
@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[[api-linebreak]]
AccountProxyTest::testId function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::id[[api-linebreak]]
@covers ::setInitialAccountId[[api-linebreak]]
AccountProxyTest::testSetInitialAccountIdException function core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php @covers ::setInitialAccountId[[api-linebreak]]
AccountSetEvent class core/lib/Drupal/Core/Session/AccountSetEvent.php Event fired when an account is set for the current session.
AccountSetEvent.php file core/lib/Drupal/Core/Session/AccountSetEvent.php
AccountSetEvent::$account property core/lib/Drupal/Core/Session/AccountSetEvent.php The set account.
AccountSetEvent::getAccount function core/lib/Drupal/Core/Session/AccountSetEvent.php Gets the account.
AccountSetEvent::__construct function core/lib/Drupal/Core/Session/AccountSetEvent.php AccountSetEvent constructor.
AccountSettingsForm class core/modules/user/src/AccountSettingsForm.php Configure user settings for this site.
AccountSettingsForm.php file core/modules/user/src/AccountSettingsForm.php
AccountSettingsForm::$moduleHandler property core/modules/user/src/AccountSettingsForm.php The module handler.
AccountSettingsForm::$roleStorage property core/modules/user/src/AccountSettingsForm.php The role storage used when changing the admin role.
AccountSettingsForm::buildForm function core/modules/user/src/AccountSettingsForm.php Form constructor.
AccountSettingsForm::create function core/modules/user/src/AccountSettingsForm.php Instantiates a new instance of this class.
AccountSettingsForm::getEditableConfigNames function core/modules/user/src/AccountSettingsForm.php Gets the configuration names that will be editable.
AccountSettingsForm::getFormId function core/modules/user/src/AccountSettingsForm.php Returns a unique string identifying the form.
AccountSettingsForm::__construct function core/modules/user/src/AccountSettingsForm.php Constructs a \Drupal\user\AccountSettingsForm object.
AccountSwitcher class core/lib/Drupal/Core/Session/AccountSwitcher.php An implementation of AccountSwitcherInterface.
AccountSwitcher.php file core/lib/Drupal/Core/Session/AccountSwitcher.php
AccountSwitcher::$accountStack property core/lib/Drupal/Core/Session/AccountSwitcher.php A stack of previous overridden accounts.
AccountSwitcher::$currentUser property core/lib/Drupal/Core/Session/AccountSwitcher.php The current user service.
AccountSwitcher::$originalSessionSaving property core/lib/Drupal/Core/Session/AccountSwitcher.php The original state of session saving prior to account switching.
AccountSwitcher::$writeSafeHandler property core/lib/Drupal/Core/Session/AccountSwitcher.php The write-safe session handler.
AccountSwitcher::switchBack function core/lib/Drupal/Core/Session/AccountSwitcher.php Reverts to a previous account after switching.
AccountSwitcher::switchTo function core/lib/Drupal/Core/Session/AccountSwitcher.php Safely switches to another account.
AccountSwitcher::__construct function core/lib/Drupal/Core/Session/AccountSwitcher.php Constructs a new AccountSwitcher.
AccountSwitcherInterface interface core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Defines an interface for a service for safe account switching.
AccountSwitcherInterface.php file core/lib/Drupal/Core/Session/AccountSwitcherInterface.php
AccountSwitcherInterface::switchBack function core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Reverts to a previous account after switching.
AccountSwitcherInterface::switchTo function core/lib/Drupal/Core/Session/AccountSwitcherInterface.php Safely switches to another account.
AccountSwitcherTest class core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php Test case for account switching.
AccountSwitcherTest.php file core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php
AccountSwitcherTest::testAccountSwitching function core/tests/Drupal/KernelTests/Core/Session/AccountSwitcherTest.php Tests the account switching, switching to and switching back.
AccountTakeoverGadgetChainTest class core/tests/Drupal/KernelTests/Core/User/AccountTakeoverGadgetChainTest.php Tests protection against SA-CORE-2024-007 Gadget Chain.
AccountTakeoverGadgetChainTest.php file core/tests/Drupal/KernelTests/Core/User/AccountTakeoverGadgetChainTest.php
AccountTakeoverGadgetChainTest::$modules property core/tests/Drupal/KernelTests/Core/User/AccountTakeoverGadgetChainTest.php Modules to install.

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