Improve Entity Reference Field Rendering to Include Language Translation Check

Created on 4 December 2023, 12 months ago
Updated 2 February 2024, 10 months ago

Problem/Motivation

The current entity reference field rendering in entity_reference_link lacks robust language translation checks, potentially leading to inaccurate results when translation is enabled on the site.

Steps to reproduce

1. Enable language translation on the Drupal site.
2. Create entities with entity reference fields.
3. Observe inconsistencies in rendering when entities have translations.

Proposed resolution

Enhance the entity reference field rendering by incorporating the getTranslation method for more accurate language translation checks. This improvement aims to provide a streamlined and reliable solution.

Remaining tasks

- Conduct thorough testing to ensure accurate entity rendering in various language translation scenarios.
- Use dependency injection in the formatter class.

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Needs review

Version

1.0

Component

Documentation

Created by

🇯🇴Jordan mohammad-fayoumi Amman

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

Comments & Activities

Production build 0.71.5 2024