W3cubDocs

/Drupal 8

public function EntityFormInterface::getEntity

public 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.

File

core/lib/Drupal/Core/Entity/EntityFormInterface.php, line 42

Class

EntityFormInterface
Defines an interface for entity form classes.

Namespace

Drupal\Core\Entity

Code

public function getEntity();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityFormInterface.php/function/EntityFormInterface::getEntity/8.1.x