Missing support for Entity Translations in FormatterBase.php

Created on 3 November 2021, about 3 years ago
Updated 6 March 2024, 9 months ago

Problem/Motivation

Rendered entities always show up in their original language rather than the translation which is relevant for the current context.

Steps to reproduce

Only applies to module versions 8.x-1.x which has a custom FormatterBase.php implementation.
8.x-2.x is extending from \Drupal\Core\Field\Plugin\Field\FieldFormatter\EntityReferenceFormatterBase.php which has translation support.

Proposed resolution

Apply Entity Repository Translation support to FormatterBase.php, similar to Drupal Core's EntityReferenceFormatterBase.php

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇧🇪Belgium jover Leuven 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024