diff --git a/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php b/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php index 6b3dbb11..41f2794 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php @@ -67,7 +67,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { // Removing a translation should result into a new entity revision in // order to keep the history, otherwise the changes made in this // translation in the current revision will be all lost. - if ($untranslated_entity instanceof RevisionableInterface) { + if ($untranslated_entity instanceof RevisionableInterface && $untranslated_entity->getEntityType()->isRevisionable()) { $untranslated_entity->setNewRevision(); } $form_state->setRedirectUrl($untranslated_entity->urlInfo('canonical'));