public function ConsentAgreementRevisionRevertForm::getQuestion in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::getQuestion()
- 3.0.x modules/gdpr_consent/src/Form/ConsentAgreementRevisionRevertForm.php \Drupal\gdpr_consent\Form\ConsentAgreementRevisionRevertForm::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
- modules/
gdpr_consent/ src/ Form/ ConsentAgreementRevisionRevertForm.php, line 75
Class
- ConsentAgreementRevisionRevertForm
- Provides a form for reverting a Consent Agreement revision.
Namespace
Drupal\gdpr_consent\FormCode
public function getQuestion() {
return $this
->t('Are you sure you want to revert to the revision from %revision-date?', [
'%revision-date' => $this->dateFormatter
->format($this->revision
->getRevisionCreationTime()),
]);
}