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
- 11.x core/core.services.yml \current_user
Class
Drupal\Core\Session\AccountProxy23 string references to current_user
- AllowedValuesConstraintValidator::create in core/
lib/ Drupal/ Core/ Validation/ Plugin/ Validation/ Constraint/ AllowedValuesConstraintValidator.php - Instantiates a new instance of this class.
- BlockManagerTest::setUp in core/
tests/ Drupal/ Tests/ Core/ Block/ BlockManagerTest.php - Broken::create in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - Creates an instance of the plugin.
- ControllerBase::currentUser in core/
lib/ Drupal/ Core/ Controller/ ControllerBase.php - Returns the current user.
- ControllerBaseTest::testCreate in core/
tests/ Drupal/ KernelTests/ Core/ Controller/ ControllerBaseTest.php - @covers ::create[[api-linebreak]]
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.