current_user

Same name and namespace in other branches
  1. 9 core/core.services.yml \current_user
  2. 8.9.x core/core.services.yml \current_user
  3. 11.x core/core.services.yml \current_user

Class

Drupal\Core\Session\AccountProxy
23 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]]

... See full list

File

core/core.services.yml

View source
  1. class: Drupal\Core\Session\AccountProxy
  2. arguments:
  3. - '@event_dispatcher'

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