public function ContentTranslationMetadataWrapper::setSource in Drupal 10
Same name and namespace in other branches
- 8 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::setSource()
- 9 core/modules/content_translation/src/ContentTranslationMetadataWrapper.php \Drupal\content_translation\ContentTranslationMetadataWrapper::setSource()
File
- core/
modules/ content_translation/ src/ ContentTranslationMetadataWrapper.php, line 50
Class
- ContentTranslationMetadataWrapper
- Base class for content translation metadata wrappers.
Namespace
Drupal\content_translationCode
public function setSource($source) {
$this->translation
->set('content_translation_source', $source);
return $this;
}