function LanguageNegotiator::__construct

Same name and namespace in other branches
  1. 10 core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::__construct()
  2. 11.x core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::__construct()
  3. 9 core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::__construct()
  4. 8.9.x core/modules/language/src/LanguageNegotiator.php \Drupal\language\LanguageNegotiator::__construct()

File

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

Class

LanguageNegotiator
Class responsible for performing language negotiation.

Namespace

Drupal\language

Code

public function __construct(#[Autowire(service: 'language_manager')] protected ConfigurableLanguageManagerInterface $languageManager, #[Autowire(service: 'plugin.manager.language_negotiation_method')] protected PluginManagerInterface $negotiatorManager, protected ConfigFactoryInterface $configFactory, protected Settings $settings, protected RequestStack $requestStack) {
}

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