ConfigurableLanguageManager::setNegotiator

public ConfigurableLanguageManager::setNegotiator(LanguageNegotiatorInterface $negotiator)

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\language

Code

public function setNegotiator(LanguageNegotiatorInterface $negotiator) {
  $this->negotiator = $negotiator;
  $this->initialized = FALSE;
  $this->negotiatedLanguages = array();
}
doc_Drupal
2016-10-29 08:55:18
Comments
Leave a Comment

Please login to continue.