diff -u b/core/modules/entity_reference/src/Tests/EntityReferenceFieldUntranslatedReferenceViewTest.php b/core/modules/entity_reference/src/Tests/EntityReferenceFieldUntranslatedReferenceViewTest.php --- b/core/modules/entity_reference/src/Tests/EntityReferenceFieldUntranslatedReferenceViewTest.php +++ b/core/modules/entity_reference/src/Tests/EntityReferenceFieldUntranslatedReferenceViewTest.php @@ -7,13 +7,13 @@ namespace Drupal\entity_reference\Tests; - /** * Tests the translation of entity reference untranslated field display on nodes. * * @group entity_reference */ class EntityReferenceFieldUntranslatedReferenceViewTest extends EntityReferenceFieldTranslatedReferenceViewTest { + /** * Flag indicating whether the field is translatable. * only in patch2: unchanged: --- a/core/lib/Drupal/Core/Field/FormatterInterface.php +++ b/core/lib/Drupal/Core/Field/FormatterInterface.php @@ -69,11 +69,14 @@ public function prepareView(array $entities_items); * * @param \Drupal\Core\Field\FieldItemListInterface $items * The field values to be rendered. + * @param $langcode + * (optional) The language that should be used to render the field. Defaults + * to the current content language. * * @return array * A renderable array for a themed field with its label and all its values. */ - public function view(FieldItemListInterface $items); + public function view(FieldItemListInterface $items, $langcode = NULL); /** * Builds a renderable array for a field value.