Problem/Motivation
Different language versions of the same entity are all returned in the same language.
Steps to reproduce
Create a view with Rendering Language set to Content language of view row and check out the results. The preview shows different language versions while the views resource returns duplicates in the same language.
Proposed resolution
Use the same mechanism that views uses for translations.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3175437-core-temporary.patch | 864 bytes | blazey |
| #2 | 3175437-2.patch | 2.32 KB | blazey |
Comments
Comment #2
blazey commentedHere's a patch. The code isn't as clean as I would like it to be, however, it tries to mimic what views does as closely as possible. Right now it depends on #3175411: createCollectionDataFromEntities overrides language versions and the temporary core patch (which won't be needed after #2794431: [META] Formalize translations support gets in).
Comment #3
blazey commented