language_negotiator

Same name in other branches
  1. 9 core/modules/language/language.services.yml \language_negotiator
  2. 8.9.x core/modules/language/language.services.yml \language_negotiator
  3. 11.x core/modules/language/language.services.yml \language_negotiator

Class

Drupal\language\LanguageNegotiator
7 string references to language_negotiator
ConfigurableLanguageManagerTest::setUp in core/modules/language/tests/src/Kernel/ConfigurableLanguageManagerTest.php
ConfigurableLanguageManagerTest::testUrlContentTranslationWithPreferredAdminLanguage in core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php
Tests translation with URL and Preferred Admin Language negotiators.
ConfigurableLanguageManagerTest::testUrlContentTranslationWithSessionLanguage in core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php
Tests translation with URL and Session Language Negotiators.
ConfigurableLanguageManagerTest::testUserProfileTranslationWithPreferredAdminLanguage in core/modules/language/tests/src/Functional/ConfigurableLanguageManagerTest.php
Tests translation of the user profile edit form.
LanguageNegotiatorPluginTest::testLanguageNegotiatorNoPlugin in core/modules/language/tests/src/Kernel/LanguageNegotiatorPluginTest.php
Tests for PluginNotFoundException.

... See full list

File

core/modules/language/language.services.yml

View source
  1. class: Drupal\language\LanguageNegotiator
  2. arguments:
  3. - '@language_manager'
  4. - '@plugin.manager.language_negotiation_method'
  5. - '@config.factory'
  6. - '@settings'
  7. - '@request_stack'
  8. calls:
  9. - [initLanguageManager]

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