You are here

public function ConfirmFormTestForm::getCancelText in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php \Drupal\form_test\ConfirmFormTestForm::getCancelText()

Returns a caption for the link which cancels the action.

Return value

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

Overrides ConfirmFormBase::getCancelText

1 method overrides ConfirmFormTestForm::getCancelText()
ConfirmFormArrayPathTestForm::getCancelText in core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php
Returns a caption for the link which cancels the action.

File

core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php, line 54

Class

ConfirmFormTestForm
Provides a test confirmation form.

Namespace

Drupal\form_test

Code

public function getCancelText() {
  return $this
    ->t('ConfirmFormTestForm::getCancelText().');
}