You are here

public function LanguageNegotiatorInterface::setCurrentUser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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.

1 method overrides LanguageNegotiatorInterface::setCurrentUser()
LanguageNegotiator::setCurrentUser in core/modules/language/src/LanguageNegotiator.php
Sets the current active user and resets all language types.

File

core/modules/language/src/LanguageNegotiatorInterface.php, line 123
Contains \Drupal\language\LanguageNegotiatorInterface.

Class

LanguageNegotiatorInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function setCurrentUser(AccountInterface $current_user);