You are here

public function SiteAlertDeleteForm::getConfirmText in Site Alert 8

Returns a caption for the button that confirms the action.

Return value

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

Overrides ContentEntityConfirmFormBase::getConfirmText

File

src/Entity/Form/SiteAlertDeleteForm.php, line 31

Class

SiteAlertDeleteForm
Implements SiteAlertDeleteForm class.

Namespace

Drupal\site_alert\Entity\Form

Code

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