You are here

public function ContentTranslationHandlerInterface::retranslate in Drupal 9

Same name and namespace in other branches
  1. 8 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 60

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

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