current_user
Same name and namespace in other branches
- 9 core/core.services.yml \current_user
- 8.9.x core/core.services.yml \current_user
- 10 core/core.services.yml \current_user
Class
Drupal\Core\Session\AccountProxy84 string references to current_user
- AccountSwitcherTest::testAccountSwitching in core/
tests/ Drupal/ KernelTests/ Core/ Session/ AccountSwitcherTest.php - Tests the account switching, switching to and switching back.
- AllowedValuesConstraintValidator::create in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AllowedValuesConstraintValidator.php - Instantiates a new instance of this class.
- ArgumentDefaultTest::testArgumentDefaultNoOptions in core/
modules/ views/ tests/ src/ Functional/ Plugin/ ArgumentDefaultTest.php - Tests the use of a default argument plugin that provides no options.
- BlockBaseTest::testContextMapping in core/
tests/ Drupal/ KernelTests/ Core/ Block/ BlockBaseTest.php - Tests that blocks config form have context mapping, and it is stored in configuration.
- BlockContentBlock::create in core/
modules/ block_content/ src/ Plugin/ Block/ BlockContentBlock.php - Creates an instance of the plugin.
File
-
core/
core.services.yml
View source
- class: Drupal\Core\Session\AccountProxy
- arguments:
- - '@event_dispatcher'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.