LanguageNegotiationMethodBase::setLanguageManager

public LanguageNegotiationMethodBase::setLanguageManager(ConfigurableLanguageManagerInterface $language_manager)

Injects the language manager.

Parameters

\Drupal\language\ConfigurableLanguageManagerInterface $language_manager: The language manager to be used to retrieve the language list and the already negotiated languages.

Overrides LanguageNegotiationMethodInterface::setLanguageManager

File

core/modules/language/src/LanguageNegotiationMethodBase.php, line 38

Class

LanguageNegotiationMethodBase
Base class for language negotiation methods.

Namespace

Drupal\language

Code

public function setLanguageManager(ConfigurableLanguageManagerInterface $language_manager) {
  $this->languageManager = $language_manager;
}
doc_Drupal
2016-10-29 09:22:47
Comments
Leave a Comment

Please login to continue.