diff --git a/core/modules/content_translation/src/ContentTranslationHandler.php b/core/modules/content_translation/src/ContentTranslationHandler.php index cf5ddcb..93d6447 100644 --- a/core/modules/content_translation/src/ContentTranslationHandler.php +++ b/core/modules/content_translation/src/ContentTranslationHandler.php @@ -602,7 +602,7 @@ public function entityFormSourceChange($form, FormStateInterface $form_state) { */ function entityFormDelete($form, FormStateInterface $form_state) { $entity = $form_state->getFormObject()->getEntity(); - $is_translation = $entity->language()->getId() != $entity->getUntranslated()->language()->getId() ? TRUE : FALSE; + $is_translation = $entity->language()->getId() != $entity->getUntranslated()->language()->getId(); if (count($entity->getTranslationLanguages()) > 1 && !$is_translation) { drupal_set_message(t('This will delete all the translations of %label.', array('%label' => $entity->label())), 'warning'); }