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.
File
- drupal/core/lib/Drupal/Core/Entity/EntityFormControllerInterface.php, line 76
- Definition of Drupal\Core\Entity\EntityFormControllerInterface.
Class
- EntityFormControllerInterface
- Defines a common interface for entity form controller classes.
Namespace
Drupal\Core\Entity
Code
public function getEntity(array $form_state);