You are here

public function NodeRevisionRevertTranslationForm::getQuestion in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php \Drupal\node\Form\NodeRevisionRevertTranslationForm::getQuestion()

Returns the question to ask the user.

Return value

string The form question. The page title will be set to this value.

Overrides NodeRevisionRevertForm::getQuestion

File

core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php, line 72
Contains \Drupal\node\Form\NodeRevisionRevertTranslationForm.

Class

NodeRevisionRevertTranslationForm
Provides a form for reverting a node revision for a single translation.

Namespace

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