public function ConfigurableLanguageManager::setNegotiator in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/src/ConfigurableLanguageManager.php \Drupal\language\ConfigurableLanguageManager::setNegotiator()
Injects the language negotiator.
Parameters
\Drupal\language\LanguageNegotiatorInterface $negotiator: The language negotiator.
Overrides ConfigurableLanguageManagerInterface::setNegotiator
File
- core/
modules/ language/ src/ ConfigurableLanguageManager.php, line 270
Class
- ConfigurableLanguageManager
- Overrides default LanguageManager to provide configured languages.
Namespace
Drupal\languageCode
public function setNegotiator(LanguageNegotiatorInterface $negotiator) {
$this->negotiator = $negotiator;
$this->initialized = FALSE;
$this->negotiatedLanguages = [];
}