public function LanguageNegotiationMethodBase::setLanguageManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/language/src/LanguageNegotiationMethodBase.php \Drupal\language\LanguageNegotiationMethodBase::setLanguageManager()
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 43 - Contains \Drupal\language\LanguageNegotiationMethodBase.
Class
- LanguageNegotiationMethodBase
- Base class for language negotiation methods.
Namespace
Drupal\languageCode
public function setLanguageManager(ConfigurableLanguageManagerInterface $language_manager) {
$this->languageManager = $language_manager;
}