You are here

public function ContentTranslationMetadataWrapper::getSource 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::getSource()

Retrieves the source language for this translation.

Return value

string The source language code.

Overrides ContentTranslationMetadataWrapperInterface::getSource

File

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

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;
}