You are here

public function ConfirmFormArrayPathTestForm::getCancelText in Drupal 9

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

Returns a caption for the link which cancels the action.

Return value

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

Overrides ConfirmFormTestForm::getCancelText

File

core/modules/system/tests/modules/form_test/src/ConfirmFormArrayPathTestForm.php, line 35

Class

ConfirmFormArrayPathTestForm
Provides a test confirmation form with a complex cancellation destination.

Namespace

Drupal\form_test

Code

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