Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291163

FieldItemList::view() does not display fields in the correct language

$
0
0

Problem/Motivation

When rendering a non translatable entity reference field (while the referenced entity is translatable) using $entity->get('my_entity_reference')->view() the field is rendered using x-default as language.

This is different to what EntityViewBuilder::build() does, which uses the language of the (translated) referenced entity.

Proposed resolution

Not sure.

Remaining tasks

User interface changes

API changes

Data model changes


Viewing all articles
Browse latest Browse all 291163

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>