diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 40da4b84cfbe011d9f2f81bfedad2f5a5c0a1131..16de8fb6d25b7709484e0c30cecb1f5f95df88fd 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityBase.php @@ -759,15 +759,6 @@ public function removeTranslation($langcode) { } } - /** - * {@inheritdoc} - */ - public function initTranslation($langcode) { - if ($langcode != LanguageInterface::LANGCODE_DEFAULT && $langcode != $this->defaultLangcode) { - $this->translations[$langcode]['status'] = static::TRANSLATION_EXISTING; - } - } - /** * {@inheritdoc} */ diff --git a/core/lib/Drupal/Core/Entity/ContentEntityInterface.php b/core/lib/Drupal/Core/Entity/ContentEntityInterface.php index 657a599e61466bd8cc12b403f4c8d67171320c67..ba973c189e4e27b347d8bacc53518cf57b029107 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityInterface.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityInterface.php @@ -26,16 +26,4 @@ * @ingroup entity_api */ interface ContentEntityInterface extends \Traversable, FieldableEntityInterface, RevisionableInterface, TranslatableInterface { - - /** - * Marks the translation identified by the given language code as existing. - * - * @param string $langcode - * The language code identifying the translation to be initialized. - * - * @todo Remove this as soon as translation metadata have been converted to - * regular fields. - */ - public function initTranslation($langcode); - }