public function ContentEntityForm::getFormDisplay

public ContentEntityForm::getFormDisplay(FormStateInterface $form_state)

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

File

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

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

© 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::getFormDisplay/8.1.x