Problem/Motivation

Entity form complex widget is not rendering the entity label in proper language. It should consider page language fallbacks.

Proposed resolution

getEntityLabel method should use getTranslationFromContext to render label in proper language.
see: https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Entity%21...

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gaurav.manerkar created an issue. See original summary.

gaurav_manerkar’s picture

Issue summary: View changes
gaurav_manerkar’s picture

Component: Documentation » Code
gaurav_manerkar’s picture

StatusFileSize
new1.04 KB
gaurav_manerkar’s picture

Status: Active » Needs review

dmitry.korhov made their first commit to this issue’s fork.

dmitry.korhov’s picture

Title: Inline form complex widget doesnt work with language fallbacks. » Inline form complex widget does not support language fallbacks for titles
Issue summary: View changes
Issue tags: -Fallback behaviour +fallback, +localization
StatusFileSize
new2.54 KB

attaching patch from MR

dmitry.korhov’s picture

StatusFileSize
new2.46 KB

Updated patch according to latest changes (previous one was not applicable during composer install routine)

The last submitted patch, 4: 3306743-1.patch, failed testing. View results

Status: Needs review » Needs work
gaurav_manerkar’s picture

StatusFileSize
new729 bytes
gaurav_manerkar’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
gaurav_manerkar’s picture

Status: Needs work » Needs review
StatusFileSize
new1.44 KB

Status: Needs review » Needs work
gaurav_manerkar’s picture

StatusFileSize
new1.51 KB
gaurav_manerkar’s picture

StatusFileSize
new1.54 KB
dmitry.korhov’s picture

Title: Inline form complex widget does not support language fallbacks for titles » Inline form complex widget does not support language fallbacks for existing entities
michaelsoetaert’s picture

Version: 8.x-1.x-dev » 3.x-dev
StatusFileSize
new1.54 KB

Re-rolled patch against 3.x branch.

michaelsoetaert’s picture

StatusFileSize
new7.44 KB

Patch in comment #21 was re-rolled successfully, but depended on other code that has since been removed. The updated patch includes the code it was depending on.