public EntityForm::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.
Overrides EntityFormInterface::getEntity
File
- core/lib/Drupal/Core/Entity/EntityForm.php, line 336
Class
- EntityForm
- Base class for entity forms.
Namespace
Drupal\Core\Entity
Code
public function getEntity() { return $this->entity; }
Please login to continue.