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

Breadcrumb

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

function 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
Retrieves the source language for the translation being created.

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

API Navigation

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