You are here

public function NodeRevisionRevertDefaultForm::getQuestion in Thunder 6.1.x

Same name and namespace in other branches
  1. 8.5 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
  2. 8.2 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
  3. 8.3 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
  4. 8.4 modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
  5. 6.2.x modules/thunder_article/src/Form/NodeRevisionRevertDefaultForm.php \Drupal\thunder_article\Form\NodeRevisionRevertDefaultForm::getQuestion()
  6. 6.0.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\Form

Code

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