You are here

public function ScheduleRevisionRevertForm::getQuestion in Business Rules 8

Same name and namespace in other branches
  1. 2.x src/Form/ScheduleRevisionRevertForm.php \Drupal\business_rules\Form\ScheduleRevisionRevertForm::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 ScheduleRevisionRevertForm::getQuestion()
ScheduleRevisionRevertTranslationForm::getQuestion in src/Form/ScheduleRevisionRevertTranslationForm.php
Returns the question to ask the user.

File

src/Form/ScheduleRevisionRevertForm.php, line 75

Class

ScheduleRevisionRevertForm
Provides a form for reverting a Schedule revision.

Namespace

Drupal\business_rules\Form

Code

public function getQuestion() {
  return t('Are you sure you want to revert to the revision from %revision-date?', [
    '%revision-date' => $this->dateFormatter
      ->format($this->revision
      ->getRevisionCreationTime()),
  ]);
}