Commit ec3616fd authored by webchick's avatar webchick

Issue #1810330 by c4doug, plach, YesCT: Remove...

Issue #1810330 by c4doug, plach, YesCT: Remove EntityTranslationControllerInterface::removeTranslation().
parent bc308540
......@@ -265,7 +265,7 @@ function content_translation_delete_confirm_submit(array $form, array &$form_sta
$controller = content_translation_controller($entity->entityType());
// Remove the translated values.
$controller->removeTranslation($entity, $language->id);
$entity->removeTranslation($language->id);
$entity->save();
// Remove any existing path alias for the removed translation.
......
......@@ -42,13 +42,6 @@ public function __construct($entity_type, $entity_info) {
$this->entityInfo = $entity_info;
}
/**
* {@inheritdoc}
*/
public function removeTranslation(EntityInterface $entity, $langcode) {
$entity->removeTranslation($langcode);
}
/**
* Implements ContentTranslationControllerInterface::retranslate().
*/
......
......@@ -139,16 +139,6 @@ public function getTranslationAccess(EntityInterface $entity, $op);
*/
public function getSourceLangcode(array $form_state);
/**
* Removes the translation values from the given entity.
*
* @param \Drupal\Core\Entity\EntityInterface $entity
* The entity whose values should be removed.
* @param string $langcode
* The language code identifying the translation being deleted.
*/
public function removeTranslation(EntityInterface $entity, $langcode);
/**
* Marks translations as outdated.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment