public function EntityFormController::getFormDisplay

Returns the form display.

Parameters

array $form_state: An associative array containing the current state of the form.

Return value

\Drupal\entity\EntityFormDisplayInterface The current form display.

Overrides EntityFormControllerInterface::getFormDisplay

File

drupal/core/lib/Drupal/Core/Entity/EntityFormController.php, line 425
Contains \Drupal\Core\Entity\EntityFormController.

Class

EntityFormController
Base class for entity form controllers.

Namespace

Drupal\Core\Entity

Code

public function getFormDisplay(array $form_state) {
  return isset($form_state['form_display']) ? $form_state['form_display'] : NULL;
}