You are here

public function NodeRevisionDeleteForm::getConfirmText in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::getConfirmText()
  2. 9 core/modules/node/src/Form/NodeRevisionDeleteForm.php \Drupal\node\Form\NodeRevisionDeleteForm::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/node/src/Form/NodeRevisionDeleteForm.php, line 114

Class

NodeRevisionDeleteForm
Provides a form for deleting a node revision.

Namespace

Drupal\node\Form

Code

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