Drupal 8's views had separate options for entity language rendering and field language rendering. These had separate configuration, different set of options and even the options resulting in similar behavior labeled differently. In views displays these were in the field_langcode
and field_langcode_add_to_query
options for fields and rendering_language
for entities. We unified the options for these and now both behaviors are controlled by the rendering_language
option.
The possible values for the existing rendering_language
Views display option change:
Before | After |
---|---|
current_language_renderer | ***LANGUAGE_language_content*** |
default_language_renderer | ***LANGUAGE_entity_default*** |
translation_language_renderer | ***LANGUAGE_entity_translation*** |
n/a (only available for fields earlier) | ***LANGUAGE_site_default*** |
n/a (only available for fields earlier) | de (concrete specified language) |
While the new option values may look odd, the field_langcode
setting already had dynamic values structured like this, we just follow the existing pattern established there to differentiate dynamic values from explicit language values (such as the last). The ***LANGUAGE_site_default***
value was exactly this value for field language codes earlier.