function LanguageNegotiationMethodInterface::setCurrentUser

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

Injects the current user.

Parameters

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

1 method overrides LanguageNegotiationMethodInterface::setCurrentUser()
LanguageNegotiationMethodBase::setCurrentUser in core/modules/language/src/LanguageNegotiationMethodBase.php
Injects the current user.

File

core/modules/language/src/LanguageNegotiationMethodInterface.php, line 38

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

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.