Search for setCurrentUser

  1. Search 7.x for setCurrentUser
  2. Search 9.5.x for setCurrentUser
  3. Search 8.9.x for setCurrentUser
  4. Search 10.3.x for setCurrentUser
  5. Other projects
Title Object type File name Summary
DynamicMenuLinkMock::setCurrentUser function core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php Sets the current user.
LanguageNegotiationMethodBase::setCurrentUser function core/modules/language/src/LanguageNegotiationMethodBase.php Injects the current user.
LanguageNegotiationMethodInterface::setCurrentUser function core/modules/language/src/LanguageNegotiationMethodInterface.php Injects the current user.
LanguageNegotiator::setCurrentUser function core/modules/language/src/LanguageNegotiator.php
LanguageNegotiatorInterface::setCurrentUser function core/modules/language/src/LanguageNegotiatorInterface.php Sets the current active user and resets all language types.
LoggerChannel::setCurrentUser function core/lib/Drupal/Core/Logger/LoggerChannel.php Sets the current user.
LoggerChannelInterface::setCurrentUser function core/lib/Drupal/Core/Logger/LoggerChannelInterface.php Sets the current user.
UserCreationTrait::setCurrentUser function core/modules/user/tests/src/Traits/UserCreationTrait.php Switch the current logged in user.

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