You are here

public function DeleteForm::getConfirmText in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/forum/src/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::getConfirmText()
  2. 9 core/modules/forum/src/Form/DeleteForm.php \Drupal\forum\Form\DeleteForm::getConfirmText()

Returns a caption for the button that confirms the action.

Return value

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

Overrides ConfirmFormBase::getConfirmText

File

core/modules/forum/src/Form/DeleteForm.php, line 48

Class

DeleteForm
Builds the form to delete a forum term.

Namespace

Drupal\forum\Form

Code

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