You are here

public function ContentTranslationMetadataWrapper::setOutdated in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::setOutdated()

Sets the translation outdated status.

Parameters

bool $outdated: TRUE if the translation is outdated, FALSE otherwise.

Return value

$this

Overrides ContentTranslationMetadataWrapperInterface::setOutdated

File

core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 70
Contains \Drupal\content_translation\ContentTranslationMetadataWrapper.

Class

ContentTranslationMetadataWrapper
Base class for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function setOutdated($outdated) {
  $this->translation
    ->set('content_translation_outdated', $outdated);
  return $this;
}