Implements EntityTranslationControllerInterface::retranslate().
Overrides EntityTranslationControllerInterface::retranslate
public function retranslate(EntityInterface $entity, $langcode = NULL) {
$updated_langcode = !empty($langcode) ? $langcode : $entity
->language()->langcode;
$translations = $entity
->getTranslationLanguages();
foreach ($translations as $langcode => $language) {
$entity->translation[$langcode]['outdated'] = $langcode != $updated_langcode;
}
}