service language_negotiator in Drupal 10
Same name and namespace in other branches
- 8 core/modules/language/language.services.yml \language_negotiator
- 9 core/modules/language/language.services.yml \language_negotiator
Class
Drupal\language\LanguageNegotiator11 string references to language_negotiator
- ConfigurableLanguageManagerTest::setUp in core/
modules/ language/ tests/ src/ Functional/ ConfigurableLanguageManagerTest.php - 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.
File
- core/
modules/ language/ language.services.yml - core/modules/language/language.services.yml
View source
- class: Drupal\language\LanguageNegotiator
- arguments:
- - '@language_manager'
- - '@plugin.manager.language_negotiation_method'
- - '@config.factory'
- - '@settings'
- - '@request_stack'
- calls:
- - [initLanguageManager]