You are here

public function LanguageNegotiationMethodInterface::setLanguageManager in Drupal 9

Same name and namespace in other branches
  1. 8 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);