You are here

public function WebformConfigEntityDeleteFormBase::getConfirmText in Webform 8.5

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

Returns a caption for the button that confirms the action.

Return value

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

Overrides EntityDeleteFormTrait::getConfirmText

1 call to WebformConfigEntityDeleteFormBase::getConfirmText()
WebformConfigEntityDeleteFormBase::actions in src/Form/WebformConfigEntityDeleteFormBase.php
Returns an array of supported actions for the current entity form.

File

src/Form/WebformConfigEntityDeleteFormBase.php, line 109

Class

WebformConfigEntityDeleteFormBase
Provides a generic base class for a webform entity deletion form.

Namespace

Drupal\webform\Form

Code

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