function ContentTranslationHandlerInterface::getSourceLangcode

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

Retrieves the source language for the translation being created.

Parameters

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

string The source language code.

1 method overrides ContentTranslationHandlerInterface::getSourceLangcode()
ContentTranslationHandler::getSourceLangcode in core/modules/content_translation/src/ContentTranslationHandler.php

File

core/modules/content_translation/src/ContentTranslationHandlerInterface.php, line 48

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

public function getSourceLangcode(FormStateInterface $form_state);

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