function ContentTranslationMetadataWrapper::getSource

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

Overrides ContentTranslationMetadataWrapperInterface::getSource

File

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

Class

ContentTranslationMetadataWrapper
Base class for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function getSource() {
    return $this->translation
        ->get('content_translation_source')->value;
}

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