public function NodeRevisionRevertDefaultForm::getQuestion in Thunder 6.2.x
Same name and namespace in other branches
- 8.5 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
- 8.2 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
- 8.3 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
- 8.4 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
- 6.0.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
- 6.1.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
Returns the question to ask the user.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form question. The page title will be set to this value.
Overrides NodeRevisionRevertForm::getQuestion
File
- modules/
thunder_article/ src/ Form/ NodeRevisionRevertDefaultForm.php, line 28
Class
- NodeRevisionRevertDefaultForm
- Provides a form for reverting a node revision.
Namespace
Drupal\thunder_article\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to revert to the default revision from %revision-date?', [
'%revision-date' => $this->dateFormatter
->format($this->revision
->getRevisionCreationTime()),
]);
}