function RevisionRevertForm::setEntity
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/Form/RevisionRevertForm.php \Drupal\Core\Entity\Form\RevisionRevertForm::setEntity()
Overrides EntityFormInterface::setEntity
File
-
core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionRevertForm.php, line 277
Class
- RevisionRevertForm
- Provides a form for reverting an entity revision.
Namespace
Drupal\Core\Entity\FormCode
public function setEntity(EntityInterface $entity) {
assert($entity instanceof RevisionableInterface);
$this->revision = $entity;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.