Skip to content
Snippets Groups Projects
Commit 08b97663 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 19f7e413
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment