LanguageNegotiationMethodBase::setCurrentUser

public LanguageNegotiationMethodBase::setCurrentUser(AccountInterface $current_user)

Injects the current user.

Parameters

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

Overrides LanguageNegotiationMethodInterface::setCurrentUser

File

core/modules/language/src/LanguageNegotiationMethodBase.php, line 52

Class

LanguageNegotiationMethodBase
Base class for language negotiation methods.

Namespace

Drupal\language

Code

public function setCurrentUser(AccountInterface $current_user) {
  $this->currentUser = $current_user;
}
doc_Drupal
2016-10-29 09:22:47
Comments
Leave a Comment

Please login to continue.