You are here

public function ScheduleRevisionRevertTranslationForm::getQuestion in Business Rules 2.x

Same name and namespace in other branches
  1. 8 src/Form/ScheduleRevisionRevertTranslationForm.php \Drupal\business_rules\Form\ScheduleRevisionRevertTranslationForm::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 ScheduleRevisionRevertForm::getQuestion

File

src/Form/ScheduleRevisionRevertTranslationForm.php, line 70

Class

ScheduleRevisionRevertTranslationForm
Provides a form for reverting a Schedule revision for a single translation.

Namespace

Drupal\business_rules\Form

Code

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