You are here

public function SimpleMegaMenuRevisionRevertTranslationForm::getQuestion in Simple Mega Menu 8

Same name and namespace in other branches
  1. 2.0.x src/Form/SimpleMegaMenuRevisionRevertTranslationForm.php \Drupal\simple_megamenu\Form\SimpleMegaMenuRevisionRevertTranslationForm::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 SimpleMegaMenuRevisionRevertForm::getQuestion

File

src/Form/SimpleMegaMenuRevisionRevertTranslationForm.php, line 73

Class

SimpleMegaMenuRevisionRevertTranslationForm
Provides a form for reverting a megamenu revision for a single translation.

Namespace

Drupal\simple_megamenu\Form

Code

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()),
  ]);
}