public function SimpleMegaMenuRevisionRevertForm::getQuestion in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x src/Form/SimpleMegaMenuRevisionRevertForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionRevertForm::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 ConfirmFormInterface::getQuestion
1 method overrides SimpleMegaMenuRevisionRevertForm::getQuestion()
- SimpleMegaMenuRevisionRevertTranslationForm::getQuestion in src/
Form/ SimpleMegaMenuRevisionRevertTranslationForm.php - Returns the question to ask the user.
File
- src/
Form/ SimpleMegaMenuRevisionRevertForm.php, line 86
Class
- SimpleMegaMenuRevisionRevertForm
- Provides a form for reverting a Simple mega menu revision.
Namespace
Drupal\simple_megamenu\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to revert to the revision from %revision-date?', [
'%revision-date' => $this->dateFormatter
->format($this->revision
->getRevisionCreationTime()),
]);
}