From 08b97663a54c855b1acac1fe2eab7f1e4d34218f Mon Sep 17 00:00:00 2001 From: webchick <drupal@webchick.net> Date: Wed, 29 Apr 2015 20:37:52 -0700 Subject: [PATCH] Issue #2479815 by plach: Remove obsolete ContentEntityInterface::initTranslation() method --- core/lib/Drupal/Core/Entity/ContentEntityBase.php | 9 --------- .../Drupal/Core/Entity/ContentEntityInterface.php | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/ContentEntityBase.php b/core/lib/Drupal/Core/Entity/ContentEntityBase.php index 40da4b84cfbe..16de8fb6d25b 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 657a599e6146..ba973c189e4e 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); - } -- GitLab