function LanguageNegotiationMethodBase::setCurrentUser
Same name in other branches
- 9 core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::setCurrentUser()
- 8.9.x core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::setCurrentUser()
- 10 core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::setCurrentUser()
Overrides LanguageNegotiationMethodInterface::setCurrentUser
File
-
core/
modules/ language/ src/ LanguageNegotiationMethodBase.php, line 52
Class
- LanguageNegotiationMethodBase
- Base class for language negotiation methods.
Namespace
Drupal\languageCode
public function setCurrentUser(AccountInterface $current_user) {
$this->currentUser = $current_user;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.