public function EntityFormControllerInterface::build

Builds an entity form.

This is the entity form builder which is invoked via drupal_build_form() to retrieve the form.

Parameters

array $form: A nested array form elements comprising the form.

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

string $entity_type: The type of the entity being edited.

\Drupal\Core\Entity\EntityInterface $entity: The entity being edited.

Return value

array The array containing the complete form.

1 method overrides EntityFormControllerInterface::build()

File

drupal/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php, line 33
Definition of Drupal\Core\Entity\EntityFormControllerInterface.

Class

EntityFormControllerInterface
Defines a common interface for entity form controller classes.

Namespace

Drupal\Core\Entity

Code

public function build(array $form, array &$form_state, EntityInterface $entity);