function LanguageNegotiationMethodInterface::setCurrentUser
Same name in other branches
- 9 core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::setCurrentUser()
- 8.9.x core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::setCurrentUser()
- 11.x 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 38
Class
- LanguageNegotiationMethodInterface
- Interface for language negotiation classes.
Namespace
Drupal\languageCode
public function setCurrentUser(AccountInterface $current_user);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.