public function LanguageNegotiationMethodBase::setCurrentUser in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::setCurrentUser()
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 57 - Contains \Drupal\language\LanguageNegotiationMethodBase.
Class
- LanguageNegotiationMethodBase
- Base class for language negotiation methods.
Namespace
Drupal\languageCode
public function setCurrentUser(AccountInterface $current_user) {
$this->currentUser = $current_user;
}