You are here

public function ContentEntityForm::getFormDisplay in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::getFormDisplay()
  2. 9 core/lib/Drupal/Core/Entity/ContentEntityForm.php \Drupal\Core\Entity\ContentEntityForm::getFormDisplay()

Gets the form display.

Parameters

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

Return value

\Drupal\Core\Entity\Display\EntityFormDisplayInterface The current form display.

Overrides ContentEntityFormInterface::getFormDisplay

4 calls to ContentEntityForm::getFormDisplay()
ContentEntityForm::copyFormValuesToEntity in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Copies top-level form values to entity properties.
ContentEntityForm::flagViolations in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Flags violations for the current form.
ContentEntityForm::form in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Gets the actual form array to be built.
ContentEntityForm::getEditedFieldNames in core/lib/Drupal/Core/Entity/ContentEntityForm.php
Gets the names of all fields edited in the form.

File

core/lib/Drupal/Core/Entity/ContentEntityForm.php, line 349

Class

ContentEntityForm
Entity form variant for content entity types.

Namespace

Drupal\Core\Entity

Code

public function getFormDisplay(FormStateInterface $form_state) {
  return $form_state
    ->get('form_display');
}