diff --git a/src/Plugin/Field/FieldWidget/LayoutParagraphsWidget.php b/src/Plugin/Field/FieldWidget/LayoutParagraphsWidget.php index c283a6f8a992978fd4c78e29f71e7c4fe3986f6e..55d5af146df1ed290fab10fa7962e7a64662ea79 100644 --- a/src/Plugin/Field/FieldWidget/LayoutParagraphsWidget.php +++ b/src/Plugin/Field/FieldWidget/LayoutParagraphsWidget.php @@ -286,7 +286,7 @@ class LayoutParagraphsWidget extends WidgetBase implements ContainerFactoryPlugi if (isset($entity)) { $preview_view_mode = $this->getSetting('preview_view_mode'); $view_builder = $this->entityTypeManager->getViewBuilder($entity->getEntityTypeId()); - $preview = $view_builder->view($entity, $preview_view_mode); + $preview = $view_builder->view($entity, $preview_view_mode, $entity->language()->getId()); $preview['#cache']['max-age'] = 0; $preview['#attributes']['class'][] = Html::cleanCssIdentifier($entity->uuid() . '-preview'); }