function ContentEntityFormInterface::isDefaultFormLangcode

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

Checks whether the current form language matches the entity one.

Parameters

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

Return value

bool Returns TRUE if the entity form language matches the entity one.

1 method overrides ContentEntityFormInterface::isDefaultFormLangcode()
ContentEntityForm::isDefaultFormLangcode in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Checks whether the current form language matches the entity one.

File

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

Class

ContentEntityFormInterface
Defines a common interface for content entity form classes.

Namespace

Drupal\Core\Entity

Code

public function isDefaultFormLangcode(FormStateInterface $form_state);

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