function EntityFormInterface::getEntity
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::getEntity()
- 8.9.x core/lib/Drupal/Core/Entity/EntityFormInterface.php \Drupal\Core\Entity\EntityFormInterface::getEntity()
- 10 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.
3 methods override EntityFormInterface::getEntity()
- EntityForm::getEntity in core/
lib/ Drupal/ Core/ Entity/ EntityForm.php - Gets the form entity.
- RevisionDeleteForm::getEntity in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php - Gets the form entity.
- RevisionRevertForm::getEntity in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionRevertForm.php - Gets the form entity.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityFormInterface.php, line 42
Class
- EntityFormInterface
- Defines an interface for entity form classes.
Namespace
Drupal\Core\EntityCode
public function getEntity();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.