function NodeRevisionRevertTranslationForm::getQuestion

Same name in other branches
  1. 9 core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php \Drupal\node\Form\NodeRevisionRevertTranslationForm::getQuestion()
  2. 8.9.x core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php \Drupal\node\Form\NodeRevisionRevertTranslationForm::getQuestion()
  3. 11.x core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php \Drupal\node\Form\NodeRevisionRevertTranslationForm::getQuestion()

Overrides NodeRevisionRevertForm::getQuestion

File

core/modules/node/src/Form/NodeRevisionRevertTranslationForm.php, line 73

Class

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

Namespace

Drupal\node\Form

Code

public function getQuestion() {
    return $this->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()),
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.