public function LanguageNegotiator::reset in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::reset()
Resets the negotiated languages and the method instances.
Overrides LanguageNegotiatorInterface::reset
1 call to LanguageNegotiator::reset()
- LanguageNegotiator::setCurrentUser in core/
modules/ language/ src/ LanguageNegotiator.php - Sets the current active user and resets all language types.
File
- core/
modules/ language/ src/ LanguageNegotiator.php, line 112 - Contains \Drupal\language\LanguageNegotiator.
Class
- LanguageNegotiator
- Class responsible for performing language negotiation.
Namespace
Drupal\languageCode
public function reset() {
$this->negotiatedLanguages = array();
$this->methods = array();
}