function LanguageNegotiationMethodInterface::setLanguageManager

Same name in other branches
  1. 9 core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::setLanguageManager()
  2. 8.9.x core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::setLanguageManager()
  3. 10 core/modules/language/src/LanguageNegotiationMethodInterface.php \Drupal\language\LanguageNegotiationMethodInterface::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.

1 method overrides LanguageNegotiationMethodInterface::setLanguageManager()
LanguageNegotiationMethodBase::setLanguageManager in core/modules/language/src/LanguageNegotiationMethodBase.php
Injects the language manager.

File

core/modules/language/src/LanguageNegotiationMethodInterface.php, line 22

Class

LanguageNegotiationMethodInterface
Interface for language negotiation classes.

Namespace

Drupal\language

Code

public function setLanguageManager(ConfigurableLanguageManagerInterface $language_manager);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.