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.

CommentFileSizeAuthor
#2 3175437-core-temporary.patch864 bytesblazey
#2 3175437-2.patch2.32 KBblazey

Comments

blazey created an issue. See original summary.

blazey’s picture

Assigned: blazey » Unassigned
Status: Active » Needs review
StatusFileSize
new2.32 KB
new864 bytes

Here'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).