diff --git c/core/lib/Drupal/Core/Entity/ContentEntityBase.php w/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 16de8fb..56502d9 100644 --- c/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ w/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -260,6 +260,17 @@ public function isDefaultTranslation() { /** * {@inheritdoc} */ + public function isTranslation() { + if ($this->language()->getId() != $this->getUntranslated()->language()->getId()) { + return true; + } + return false; + } + + + /** + * {@inheritdoc} + */ public function getRevisionId() { return $this->getEntityKey('revision'); } diff --git c/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php w/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php index 18b636f..bee50a3 100644 --- c/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php +++ w/core/lib/Drupal/Core/Entity/ContentEntityDeleteForm.php @@ -36,9 +36,9 @@ public function submitForm(array &$form, FormStateInterface $form_state) { $this->logger('content')->notice('@type: @language translation deleted %title.', ['@type' => $entity->getEntityType()->getLabel(), '%title' => $entity->label(), '@language' => $language_name]); } else { - $entity->delete(); + $this->getEntity()->delete(); drupal_set_message($this->getDeletionMessage()); - $form_state->setRedirect(''); + $form_state->setRedirectUrl($this->getCancelUrl()); $this->logDeletionMessage(); } diff --git c/core/lib/Drupal/Core/Entity/Entity.php w/core/lib/Drupal/Core/Entity/Entity.php index a11ed15..a5c3d0f 100644 --- c/core/lib/Drupal/Core/Entity/Entity.php +++ w/core/lib/Drupal/Core/Entity/Entity.php @@ -124,19 +124,6 @@ public function enforceIsNew($value = TRUE) { } /** - * Checks if entity is a translation. - * - * @return boolean - * true if it is a translation. - */ - public function isTranslation() { - if ($this->language()->getId() != $this->getUntranslated()->language()->getId()) { - return true; - } - return false; - } - - /** * {@inheritdoc} */ public function getEntityTypeId() { diff --git c/core/lib/Drupal/Core/TypedData/TranslatableInterface.php w/core/lib/Drupal/Core/TypedData/TranslatableInterface.php index 73b288d..2422f7b 100644 --- c/core/lib/Drupal/Core/TypedData/TranslatableInterface.php +++ w/core/lib/Drupal/Core/TypedData/TranslatableInterface.php @@ -29,6 +29,14 @@ public function language(); public function isDefaultTranslation(); /** + * Checks if entity is a translation. + * + * @return bool + * true if it is a translation. + */ + public function isTranslation(); + + /** * Returns the languages the data is translated to. * * @param bool $include_default