You are here

public function BookRemoveForm::getConfirmText in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/book/src/Form/BookRemoveForm.php \Drupal\book\Form\BookRemoveForm::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/book/src/Form/BookRemoveForm.php, line 82

Class

BookRemoveForm
Remove form for book module.

Namespace

Drupal\book\Form

Code

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