- 🇨🇭Switzerland Berdir Switzerland
#15: That is a valid concern. What's interesting is that \Drupal\Core\Entity\EntityRepository::getActiveMultiple() already in HEAD does not use the entity_upcast operation but the default, so the default fallbacks are already applied, so that is pretty much already an issue but I think it doesn't happen that much in practice. You won't see a delete link if a translation doesn't exist and if you can delete a translation you can also view an unpublished translation and a fallback doesn't apply.
- 🇨🇭Switzerland Berdir Switzerland
Note1: I'm currently doing a test implementation of this in 🐛 Many calls to ContextRepository::getAvailableContexts() due to entity upcasting Needs review to get rid of that whole context stuff of that API, which I really don't understand why it was added like that and causes major performance issues.
Note2: There is zero issue summary here but this issue was created based on comment #2942907-98: Entity system does not provide an API for retrieving an entity variant that is safe for editing → by plach:
> 6: Actually we can do even better, we can get rid of that entirely in [this issue], since apparently no one is using it ;)
According to the comments in 📌 Unpublished translations should fallback to the original language Needs work , this is not correct, and people are in fact relying on it. core doesn't use it, which is IMHO a bug on its own (or it's a bug that entity_upcast ever existed), which is what the referenced issue is about, but now that it does, things are more complicated than that. A classic https://xkcd.com/1172/ ;)