You are here

public function SitewideAlertRevisionRevertForm::getConfirmText in Sitewide Alert 8

Returns a caption for the button that confirms the action.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.

Overrides ConfirmFormBase::getConfirmText

File

src/Form/SitewideAlertRevisionRevertForm.php, line 91

Class

SitewideAlertRevisionRevertForm
Provides a form for reverting a Sitewide Alert revision.

Namespace

Drupal\sitewide_alert\Form

Code

public function getConfirmText() {
  return $this
    ->t('Revert');
}