function RevisionDeleteForm::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
1 call to RevisionDeleteForm::getEntity()
- RevisionDeleteForm::getQuestion in core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php  - Returns the question to ask the user.
 
File
- 
              core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php, line 222  
Class
- RevisionDeleteForm
 - Provides a form for deleting an entity revision.
 
Namespace
Drupal\Core\Entity\FormCode
public function getEntity() {
  return $this->revision;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.