function LanguageNegotiatorInterface::setCurrentUser

Same name in other branches
  1. 9 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::setCurrentUser()
  2. 8.9.x core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::setCurrentUser()
  3. 10 core/modules/language/src/LanguageNegotiatorInterface.php \Drupal\language\LanguageNegotiatorInterface::setCurrentUser()

Sets the current active user and resets all language types.

Parameters

\Drupal\Core\Session\AccountInterface $current_user: The current active user.

File

core/modules/language/src/LanguageNegotiatorInterface.php, line 117

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function setCurrentUser(AccountInterface $current_user);

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