function ContentTranslationMetadataWrapperInterface::setSource

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

Sets the source language for this translation.

Parameters

string $source: The source language code.

Return value

$this

1 method overrides ContentTranslationMetadataWrapperInterface::setSource()
ContentTranslationMetadataWrapper::setSource in core/modules/content_translation/src/ContentTranslationMetadataWrapper.php
Sets the source language for this translation.

File

core/modules/content_translation/src/ContentTranslationMetadataWrapperInterface.php, line 31

Class

ContentTranslationMetadataWrapperInterface
Common interface for content translation metadata wrappers.

Namespace

Drupal\content_translation

Code

public function setSource($source);

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