You are here

public function LanguageNegotiationMethodInterface::setCurrentUser in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 43
Contains \Drupal\language\LanguageNegotiationMethodInterface.

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

Namespace

Drupal\language

Code

public function setCurrentUser(AccountInterface $current_user);