Commit 7fd83fe9 authored by Dries's avatar Dries

Issue #2020361 by vijaycs85: Followup for: Create LanguageConfigContext to...

Issue #2020361 by vijaycs85: Followup for: Create LanguageConfigContext to activate configuration overrides based on language.
parent 884b84c1
......@@ -62,8 +62,8 @@ public function __construct(LanguageManager $language_manager, ContextInterface
public function configContext(ConfigEvent $event) {
$context = $event->getContext();
// If there is a language set explicitly in current context, use it.
// otherwise check if there is a user set in the current context,
// If there is a language set explicitly in the current context, use it.
// Otherwise check if there is a user set in the current context,
// to set the language based on the preferred language of the user.
// Otherwise set it based on the negotiated interface language.
if ($language = $context->get('language')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment