public function ConfigEntityRevisionsRevertFormBase::getQuestion in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::getQuestion()
- 1.x src/ConfigEntityRevisionsRevertFormBase.php \Drupal\config_entity_revisions\ConfigEntityRevisionsRevertFormBase::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
File
- src/
ConfigEntityRevisionsRevertFormBase.php, line 139
Class
- ConfigEntityRevisionsRevertFormBase
- Provides a form for reverting / publishing a revision.
Namespace
Drupal\config_entity_revisionsCode
public function getQuestion() {
return $this
->t('Are you sure you want to %action to the revision from %revision-date?', [
'%revision-date' => $this->dateFormatter
->format($this->revision
->getRevisionCreationTime()),
'%action' => $this->action,
]);
}