ContentTranslationHandlerInterface::getSourceLangcode

public ContentTranslationHandlerInterface::getSourceLangcode(FormStateInterface $form_state)

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.

File

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

Class

ContentTranslationHandlerInterface
Interface for providing content translation.

Namespace

Drupal\content_translation

Code

public function getSourceLangcode(FormStateInterface $form_state);
doc_Drupal
2016-10-29 08:58:17
Comments
Leave a Comment

Please login to continue.