function ContentEntityFormInterface::getFormLangcode

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php \Drupal\Core\Entity\ContentEntityFormInterface::getFormLangcode()
  2. 8.9.x core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php \Drupal\Core\Entity\ContentEntityFormInterface::getFormLangcode()
  3. 11.x core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php \Drupal\Core\Entity\ContentEntityFormInterface::getFormLangcode()

Gets the code identifying the active form language.

Parameters

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

Return value

string The form language code.

1 method overrides ContentEntityFormInterface::getFormLangcode()
ContentEntityForm::getFormLangcode in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Gets the code identifying the active form language.

File

core/lib/Drupal/Core/Entity/ContentEntityFormInterface.php, line 48

Class

ContentEntityFormInterface
Defines a common interface for content entity form classes.

Namespace

Drupal\Core\Entity

Code

public function getFormLangcode(FormStateInterface $form_state);

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