- Issue created by @Murz
In the issue
🐛
EntityRepository::getTranslationFromContext() function forcibly adds default entity language to fallback candidates
Needs review
we implemented a "strict fallback" mode, where the EntityRepository::getTranslationFromContext()
can return NULL if no allowed fallbacks are available, instead of always returning the default translation for this case.
So, this strict way is more correct, than the current one.
But enabling this "strict fallback" mode by default will be a breaking change, that can break logic on the current sites, that expect always to receive a translation.
1. Enable "strict mode" by default in Drupal.
2. Expect a lot of issues like "My site is broken, please revert the change!".
The proposed solution is to implement a configuration option "Use strict fallback mode by default" that will control the default behavior of this function.
It will give the ability to use this feature on sites, that are ready for this change, with not breaking sites, that are not yet ready for this.
Active
11.0 🔥