Commit 08b97663 authored by webchick's avatar webchick
Browse files

Issue #2479815 by plach: Remove obsolete ContentEntityInterface::initTranslation() method

parent 19f7e413
......@@ -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}
*/
......
......@@ -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);
}
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