You are here

public function ConfigurableLanguageManager::setNegotiator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 275
Contains \Drupal\language\ConfigurableLanguageManager.

Class

ConfigurableLanguageManager
Overrides default LanguageManager to provide configured languages.

Namespace

Drupal\language

Code

public function setNegotiator(LanguageNegotiatorInterface $negotiator) {
  $this->negotiator = $negotiator;
  $this->initialized = FALSE;
  $this->negotiatedLanguages = array();
}