public function EntityTranslationControllerInterface::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 EntityTranslationControllerInterface::retranslate()
EntityTranslationController::retranslate in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::retranslate().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php, line 177
Definition of Drupal\translation_entity\EntityTranslationControllerInterface.

Class

EntityTranslationControllerInterface
Interface for providing entity translation.

Namespace

Drupal\translation_entity

Code

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