public function ConfirmFormTestForm::getCancelText in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/form_test/src/ConfirmFormTestForm.php \Drupal\form_test\ConfirmFormTestForm::getCancelText()
- 9 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_testCode
public function getCancelText() {
return $this
->t('ConfirmFormTestForm::getCancelText().');
}