function ContentTranslationMetadataWrapper::setSource

Same name and namespace in other branches
  1. 9 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::setSource()
  2. 8.9.x core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::setSource()
  3. 10 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::setSource()

Overrides ContentTranslationMetadataWrapperInterface::setSource

File

core/modules/content_translation/src/ContentTranslationMetadataWrapper.php, line 50

Class

ContentTranslationMetadataWrapper
Base class for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function setSource($source) {
    $this->translation
        ->set('content_translation_source', $source);
    return $this;
}

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