service account_switcher in Drupal 10
Same name and namespace in other branches
- 8 core/core.services.yml \account_switcher
- 9 core/core.services.yml \account_switcher
Class
Drupal\Core\Session\AccountSwitcher20 string references to account_switcher
- AccessPermissionTest::testRenderCaching in core/
modules/ user/ tests/ src/ Kernel/ Views/ AccessPermissionTest.php - Tests access on render caching.
- AccessRoleTest::testRenderCaching in core/
modules/ user/ tests/ src/ Functional/ Views/ AccessRoleTest.php - Tests access on render caching.
- AccountSwitcherTest::testAccountSwitching in core/
tests/ Drupal/ KernelTests/ Core/ Session/ AccountSwitcherTest.php - ArgumentDefaultTest::testPluginArgumentDefaultCurrentUser in core/
modules/ user/ tests/ src/ Kernel/ Views/ ArgumentDefaultTest.php - Tests the current user with argument default.
- CacheContextOptimizationTest::testUserPermissionCacheContextOptimization in core/
tests/ Drupal/ KernelTests/ Core/ Cache/ CacheContextOptimizationTest.php - Ensures that 'user.permissions' cache context is able to define cache tags.
File
- core/
core.services.yml - core/core.services.yml
View source
- class: Drupal\Core\Session\AccountSwitcher
- arguments:
- - '@current_user'
- - '@session_handler.write_safe'