- Issue created by @dieterholvoet
- 🇧🇪Belgium dieterholvoet Brussels
The original Drupal\Core\Language\LanguageDefault has the following class comment:
Provides a simple get and set wrapper to the default language object.
The default language must be provided without dependencies since it is both
configured and a dependency of the configuration system. The LanguageDefault
object is a container service. The default values are stored on the container
by \Drupal\Core\DrupalKernel::buildContainer(). This allows services to
override this parameter in a ServiceProvider, for example,
\Drupal\language\LanguageServiceProvider::alter().I think this means that we can't read config in
Drupal\domain_language\LanguageDefault
. - 🇧🇪Belgium dieterholvoet Brussels
I do get that we can't store the default language in the container as that class suggests, since it can vary per request. At the very least we should make sure to not read
system.site
config inDrupal\domain_language\LanguageDefault
. - Status changed to Needs review
10 months ago 9:25am 11 June 2024 - Status changed to RTBC
8 months ago 11:12am 29 August 2024 - 🇭🇺Hungary denes.szabo Hungary
I can confirm, this fix solved my problem on my site.
- Status changed to Fixed
7 months ago 2:39pm 13 September 2024 Automatically closed - issue fixed for 2 weeks with no activity.