LanguageNegotiator::initLanguageManager

public LanguageNegotiator::initLanguageManager()

Initializes the injected language manager with the negotiator.

This should be called right after instantiating the negotiator to make it available to the language manager without introducing a circular dependency.

File

core/modules/language/src/LanguageNegotiator.php, line 100

Class

LanguageNegotiator
Class responsible for performing language negotiation.

Namespace

Drupal\language

Code

1
2
3
public function initLanguageManager() {
  $this->languageManager->setNegotiator($this);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.