function ConfigurableLanguageManagerInterface::setNegotiator

Same name in other branches
  1. 9 core/modules/language/src/ConfigurableLanguageManagerInterface.php \Drupal\language\ConfigurableLanguageManagerInterface::setNegotiator()
  2. 10 core/modules/language/src/ConfigurableLanguageManagerInterface.php \Drupal\language\ConfigurableLanguageManagerInterface::setNegotiator()
  3. 11.x core/modules/language/src/ConfigurableLanguageManagerInterface.php \Drupal\language\ConfigurableLanguageManagerInterface::setNegotiator()

Injects the language negotiator.

Parameters

\Drupal\language\LanguageNegotiatorInterface $negotiator: The language negotiator.

1 method overrides ConfigurableLanguageManagerInterface::setNegotiator()
ConfigurableLanguageManager::setNegotiator in core/modules/language/src/ConfigurableLanguageManager.php
Injects the language negotiator.

File

core/modules/language/src/ConfigurableLanguageManagerInterface.php, line 32

Class

ConfigurableLanguageManagerInterface
Common interface for language negotiation services.

Namespace

Drupal\language

Code

public function setNegotiator(LanguageNegotiatorInterface $negotiator);

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