public function EntityTranslationControllerInterface::getSourceLangcode

Retrieves the source language for the translation being created.

Parameters

array $form_state: The form state array.

Return value

string The source language code.

1 method overrides EntityTranslationControllerInterface::getSourceLangcode()
EntityTranslationController::getSourceLangcode in drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationController.php
Implements EntityTranslationControllerInterface::getSourceLanguage().

File

drupal/core/modules/translation_entity/lib/Drupal/translation_entity/EntityTranslationControllerInterface.php, line 156
Definition of Drupal\translation_entity\EntityTranslationControllerInterface.

Class

EntityTranslationControllerInterface
Interface for providing entity translation.

Namespace

Drupal\translation_entity

Code

public function getSourceLangcode(array $form_state);