public function LanguageNegotiationMethodInterface::setCurrentUser in Drupal 8
Same name and namespace in other branches
- 9 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);