function ContentTranslationHandlerInterface::retranslate

Same name in other branches
  1. 9 core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::retranslate()
  2. 8.9.x core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::retranslate()
  3. 11.x core/modules/content_translation/src/ContentTranslationHandlerInterface.php \Drupal\content_translation\ContentTranslationHandlerInterface::retranslate()

Marks translations as outdated.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity being translated.

string $langcode: (optional) The language code of the updated language: all the other translations will be marked as outdated. Defaults to the entity language.

1 method overrides ContentTranslationHandlerInterface::retranslate()
ContentTranslationHandler::retranslate in core/modules/content_translation/src/ContentTranslationHandler.php
Marks translations as outdated.

File

core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 59

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

public function retranslate(EntityInterface $entity, $langcode = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.