You are here

public function HomeboxLayoutRevisionRevertTranslationForm::getQuestion in Homebox 8

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 HomeboxLayoutRevisionRevertForm::getQuestion

File

src/Form/HomeboxLayoutRevisionRevertTranslationForm.php, line 79

Class

HomeboxLayoutRevisionRevertTranslationForm
Homebox Layout revision reverting form for a single translation.

Namespace

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