You are here

public function WebformDeleteFormBase::getConfirmText in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformDeleteFormBase.php \Drupal\webform\Form\WebformDeleteFormBase::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides ConfirmFormBase::getConfirmText

1 call to WebformDeleteFormBase::getConfirmText()
WebformDeleteFormBase::buildForm in src/Form/WebformDeleteFormBase.php
Form constructor.
2 methods override WebformDeleteFormBase::getConfirmText()
WebformSubmissionsDeleteFormBase::getConfirmText in src/Form/WebformSubmissionsDeleteFormBase.php
Returns a caption for the button that confirms the action.
WebformVariantApplyForm::getConfirmText in src/Form/WebformVariantApplyForm.php
Returns a caption for the button that confirms the action.

File

src/Form/WebformDeleteFormBase.php, line 101

Class

WebformDeleteFormBase
Provides a generic base class for a webform deletion form.

Namespace

Drupal\webform\Form

Code

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