You are here

public function EntityFormInterface::getEntity in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::getEntity()

Gets the form entity.

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

Return value

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

1 method overrides EntityFormInterface::getEntity()
EntityForm::getEntity in core/lib/Drupal/Core/Entity/EntityForm.php
Gets the form entity.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 47
Contains \Drupal\Core\Entity\EntityFormInterface.

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function getEntity();