public function MediaRevisionRevertTranslationForm::getQuestion in Media Revisions UI 8
Same name and namespace in other branches
- 2.0.x src/Form/MediaRevisionRevertTranslationForm.php \Drupal\media_revisions_ui\Form\MediaRevisionRevertTranslationForm::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 MediaRevisionRevertForm::getQuestion
File
- src/
Form/ MediaRevisionRevertTranslationForm.php, line 71
Class
- MediaRevisionRevertTranslationForm
- Provides a form for reverting media revision for a single translation.
Namespace
Drupal\media_revisions_ui\FormCode
public function getQuestion() {
return $this
->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()),
]);
}