public ContentEntityForm::getFormLangcode(FormStateInterface $form_state)
Gets the code identifying the active form language.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
string The form language code.
Overrides ContentEntityFormInterface::getFormLangcode
public function getFormLangcode(FormStateInterface $form_state) { $this->initFormLangcodes($form_state); return $form_state->get('langcode'); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityForm.php/function/ContentEntityForm::getFormLangcode/8.1.x