public function EntityFormControllerInterface::setFormDisplay

Sets the form display.

Sets the form display which will be used for populating form element defaults.

Parameters

\Drupal\entity\EntityFormDisplayInterface $form_display: The form display that the current form operates with.

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

1 method overrides EntityFormControllerInterface::setFormDisplay()
EntityFormController::setFormDisplay in drupal/core/lib/Drupal/Core/Entity/EntityFormController.php
Sets the form display.

File

drupal/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php, line 70
Contains \Drupal\Core\Entity\EntityFormControllerInterface.

Class

EntityFormControllerInterface
Defines a common interface for entity form controller classes.

Namespace

Drupal\Core\Entity

Code

public function setFormDisplay(EntityFormDisplayInterface $form_display, array &$form_state);