diff --git a/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php b/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php index 36f681b..17863ce 100644 --- a/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php +++ b/src/Plugin/Field/FieldWidget/InlineParagraphsWidget.php @@ -1340,10 +1340,6 @@ class InlineParagraphsWidget extends WidgetBase { // Adding a language through the ContentTranslationController. $this->isTranslating = TRUE; } - if ($host->hasTranslation($form_state->get('langcode')) && $host->getTranslation($form_state->get('langcode'))->get($default_langcode_key)->value == 0) { - // Editing a translation. - $this->isTranslating = TRUE; - } } /** diff --git a/src/Plugin/Field/FieldWidget/ParagraphsWidget.php b/src/Plugin/Field/FieldWidget/ParagraphsWidget.php index 84b47ea..6f22f02 100644 --- a/src/Plugin/Field/FieldWidget/ParagraphsWidget.php +++ b/src/Plugin/Field/FieldWidget/ParagraphsWidget.php @@ -2099,10 +2099,6 @@ class ParagraphsWidget extends WidgetBase { // Adding a language through the ContentTranslationController. $this->isTranslating = TRUE; } - if ($host->hasTranslation($form_state->get('langcode')) && $host->getTranslation($form_state->get('langcode'))->get($default_langcode_key)->value == 0) { - // Editing a translation. - $this->isTranslating = TRUE; - } } /**