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 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;
}
doc_Drupal
2016-10-29 08:58:24
Comments
Leave a Comment

Please login to continue.