function RevisionDeleteForm::getQuestion
Same name in other branches
- 11.x core/lib/Drupal/Core/Entity/Form/RevisionDeleteForm.php \Drupal\Core\Entity\Form\RevisionDeleteForm::getQuestion()
Overrides ConfirmFormInterface::getQuestion
File
-
core/
lib/ Drupal/ Core/ Entity/ Form/ RevisionDeleteForm.php, line 107
Class
- RevisionDeleteForm
- Provides a form for deleting an entity revision.
Namespace
Drupal\Core\Entity\FormCode
public function getQuestion() {
return $this->getEntity() instanceof RevisionLogInterface ? $this->t('Are you sure you want to delete the revision from %revision-date?', [
'%revision-date' => $this->dateFormatter
->format($this->getEntity()
->getRevisionCreationTime()),
]) : $this->t('Are you sure you want to delete the revision?');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.