Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationMetadataWrapperInterface.php

function 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);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal