public function EasyEmailRevisionRevertTranslationForm::getQuestion in Easy Email 2.0.x
Same name and namespace in other branches
- 8 src/Form/EasyEmailRevisionRevertTranslationForm.php \Drupal\easy_email\Form\EasyEmailRevisionRevertTranslationForm::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 EasyEmailRevisionRevertForm::getQuestion
File
- src/
Form/ EasyEmailRevisionRevertTranslationForm.php, line 70
Class
- EasyEmailRevisionRevertTranslationForm
- Provides a form for reverting a Email revision for a single translation.
Namespace
Drupal\easy_email\FormCode
public function getQuestion() {
return t('Are you sure you want to revert @language translation to the revision from %revision-date?', [
'@language' => $this->languageManager
->getLanguageName($this->langcode),
'%revision-date' => $this->dateFormatter
->format($this->revision
->getRevisionCreationTime()),
]);
}