Search for account

  1. Search 7.x for account
  2. Search 9.5.x for account
  3. Search 8.9.x for account
  4. Search 10.3.x for account
  5. Other projects
Title Object type File name Summary
AccountSwitcher::switchTo function core/lib/Drupal/Core/Session/AccountSwitcher.php
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
AccountTakeoverGadgetChainTest::setUp function core/tests/Drupal/KernelTests/Core/User/AccountTakeoverGadgetChainTest.php
AccountTakeoverGadgetChainTest::testAccountTakeoverGadgetChain function core/tests/Drupal/KernelTests/Core/User/AccountTakeoverGadgetChainTest.php Tests unserializing a SQLi / account takeover payload.
account_switcher service core/core.services.yml Drupal\Core\Session\AccountSwitcher
AdminAccountSwitcher class core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php @internal
This API is experimental.
AdminAccountSwitcher.php file core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php
AdminAccountSwitcher::switchBack function core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php
AdminAccountSwitcher::switchTo function core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php
AdminAccountSwitcher::switchToAdministrator function core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php Switches to an administrative account.
AdminAccountSwitcher::__construct function core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php
AdminAccountSwitcherTest class core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Tests Admin Account Switcher.
AdminAccountSwitcherTest.php file core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php
AdminAccountSwitcherTest::$modules property core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php
AdminAccountSwitcherTest::register function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php
AdminAccountSwitcherTest::setUp function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php
AdminAccountSwitcherTest::testNoAdministratorsExist function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Tests that there is an error if there are no administrative users.
AdminAccountSwitcherTest::testSuperUser function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Tests switching to user 1 when the superuser access policy is enabled.
AdminAccountSwitcherTest::testSwitchToAdministrator function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Tests switching to a user with an administrative role.
AdminAccountSwitcherTest::testSwitchToAndSwitchBack function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Tests switching and switching back.
ArgumentValidateTest::$account property core/modules/user/tests/src/Kernel/Views/ArgumentValidateTest.php A user for this test.
AuthenticationSubscriber::$accountProxy property core/lib/Drupal/Core/EventSubscriber/AuthenticationSubscriber.php Account proxy.
block.block.olivero_account_menu.yml file core/themes/olivero/config/optional/block.block.olivero_account_menu.yml core/themes/olivero/config/optional/block.block.olivero_account_menu.yml
block.block.testing_theme_required_blocks_account_menu.yml file core/profiles/tests/testing_themes_blocks/themes/testing_theme_required_blocks/config/install/block.block.testing_theme_required_blocks_account_menu.yml core/profiles/tests/testing_themes_blocks/themes/testing_theme_required_blocks/config/install/block.block.testing_theme_required_blocks_account_menu.yml
block.block.umami_account_menu.yml file core/profiles/demo_umami/config/install/block.block.umami_account_menu.yml core/profiles/demo_umami/config/install/block.block.umami_account_menu.yml
BlockComponentRenderArrayTest::$account property core/modules/layout_builder/tests/src/Unit/BlockComponentRenderArrayTest.php The current user.
BlockContentBlock::$account property core/modules/block_content/src/Plugin/Block/BlockContentBlock.php The Drupal account to use for checking for access to block.
CKEditor5FragmentLinkTest::$account property core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5FragmentLinkTest.php The admin user.
CommentTestBase::$account property core/modules/comment/tests/src/Functional/Views/CommentTestBase.php A normal user with permission to post comments (without approval).
CommentTestBase::$account2 property core/modules/comment/tests/src/Functional/Views/CommentTestBase.php A second normal user that will author a node for $account to comment on.
ConfigTranslationController::$account property core/modules/config_translation/src/Controller/ConfigTranslationController.php The current user.
ConfigTranslationUiTest::testAccountSettingsConfigurationTranslation function core/modules/config_translation/tests/src/Functional/ConfigTranslationUiTest.php Tests the account settings translation interface.
ContentEntityNormalizerTest::testNormalizeWithAccountContext function core/modules/serialization/tests/src/Unit/Normalizer/ContentEntityNormalizerTest.php Tests the normalize() method with account context passed.
ContentImportTest::$adminAccount property core/tests/Drupal/FunctionalTests/DefaultContent/ContentImportTest.php The admin account.
ContentTranslationPendingRevisionTestBase::$currentAccount property core/modules/content_translation/tests/src/Functional/ContentTranslationPendingRevisionTestBase.php The current test account.
ContentTranslationSettingsTest::testAccountLanguageSettingsUI function core/modules/content_translation/tests/src/Functional/ContentTranslationSettingsTest.php Tests the language settings checkbox on account settings page.
ContextualLinkManager::$account property core/lib/Drupal/Core/Menu/ContextualLinkManager.php The current user.
ContextualLinkManagerTest::$account property core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php The mocked account.
CurrentUserContext::$account property core/modules/user/src/ContextProvider/CurrentUserContext.php The current user.
DbUpdateController::$account property core/modules/system/src/Controller/DbUpdateController.php The current user.

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