public function EntityFormControllerInterface::getEntity

Returns the form entity.

The form entity which has been used for populating form element defaults.

Parameters

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

Return value

\Drupal\Core\Entity\EntityInterface The current form entity.

1 method overrides EntityFormControllerInterface::getEntity()

File

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

Class

EntityFormControllerInterface
Defines a common interface for entity form controller classes.

Namespace

Drupal\Core\Entity

Code

public function getEntity();