LanguageNegotiationMethodInterface
interface LanguageNegotiationMethodInterface (View source)
Interface for language negotiation classes.
Methods
setLanguageManager(ConfigurableLanguageManagerInterface $language_manager)
Injects the language manager.
string
getLangcode(Request $request = NULL)
Performs language negotiation.
persist(LanguageInterface $language)
Notifies the plugin that the language code it returned has been accepted.
Details
setLanguageManager(ConfigurableLanguageManagerInterface $language_manager)
Injects the language manager.
setConfig(ConfigFactoryInterface $config)
Injects the configuration factory.
setCurrentUser(AccountInterface $current_user)
Injects the current user.
string
getLangcode(Request $request = NULL)
Performs language negotiation.
persist(LanguageInterface $language)
Notifies the plugin that the language code it returned has been accepted.