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 11.x for account
  5. Other projects
Title Object type File name Summary
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
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 Reverts to a previous account after switching.
AdminAccountSwitcher::switchTo function core/lib/Drupal/Core/DefaultContent/AdminAccountSwitcher.php Safely switches to another account.
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 @covers \Drupal\Core\DefaultContent\AdminAccountSwitcher[[api-linebreak]]
@group DefaultContent
AdminAccountSwitcherTest.php file core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php
AdminAccountSwitcherTest::$modules property core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Modules to install.
AdminAccountSwitcherTest::register function core/tests/Drupal/KernelTests/Core/DefaultContent/AdminAccountSwitcherTest.php Registers test-specific services.
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
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/testing_themes_blocks/themes/testing_theme_required_blocks/config/install/block.block.testing_theme_required_blocks_account_menu.yml core/profiles/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.
BookBreadcrumbBuilder::$account property core/modules/book/src/BookBreadcrumbBuilder.php The current user account.
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.
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.
Cron::$accountSwitcher property core/lib/Drupal/Core/Cron.php The account switcher service.
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.
DefaultAccessCheckTest::$account property core/tests/Drupal/Tests/Core/Access/DefaultAccessCheckTest.php The mocked account.
DefaultMenuLinkTreeManipulators::$account property core/lib/Drupal/Core/Menu/DefaultMenuLinkTreeManipulators.php The current user.
DeleteMultipleFormTest::$account property core/tests/Drupal/FunctionalTests/Entity/DeleteMultipleFormTest.php The current user.
Drupal\Core\DefaultContent\AdminAccountSwitcher service core/core.services.yml

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