EntityForm::$entity

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::entity
  2. 10 core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::entity
  3. 11.x core/lib/Drupal/Core/Entity/EntityForm.php \Drupal\Core\Entity\EntityForm::entity

The entity being used by this form.

Type: \Drupal\Core\Entity\EntityInterface

File

core/lib/Drupal/Core/Entity/EntityForm.php, line 47

Class

EntityForm
Base class for entity forms.

Namespace

Drupal\Core\Entity

Code

protected $entity;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.