function LanguageNegotiator::reset

Same name in other branches
  1. 9 core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::reset()
  2. 8.9.x core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::reset()
  3. 10 core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::reset()
1 call to LanguageNegotiator::reset()
LanguageNegotiator::setCurrentUser in core/modules/language/src/LanguageNegotiator.php

File

core/modules/language/src/LanguageNegotiator.php, line 112

Class

LanguageNegotiator
Class responsible for performing language negotiation.

Namespace

Drupal\language

Code

public function reset() {
    $this->negotiatedLanguages = [];
    $this->methods = [];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.