You are here

public function SitewideAlertRevisionDeleteForm::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/SitewideAlertRevisionDeleteForm.php, line 101

Class

SitewideAlertRevisionDeleteForm
Provides a form for deleting a Sitewide Alert revision.

Namespace

Drupal\sitewide_alert\Form

Code

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