protected function ConfirmFormBase::getCancelText

Returns a caption for the link which cancels the action.

Return value

string The form cancellation text.

1 call to ConfirmFormBase::getCancelText()
2 methods override ConfirmFormBase::getCancelText()
ConfirmFormTestForm::getCancelText in drupal/core/modules/system/tests/modules/form_test/lib/Drupal/form_test/ConfirmFormTestForm.php
Overrides \Drupal\Core\Form\ConfirmFormBase::getCancelText().
ReindexConfirm::getCancelText in drupal/core/modules/search/lib/Drupal/search/Form/ReindexConfirm.php
Overrides \Drupal\Core\Form\ConfirmFormBase::getCancelText().

File

drupal/core/lib/Drupal/Core/Form/ConfirmFormBase.php, line 62
Contains \Drupal\Core\Form\ConfirmFormBase.

Class

ConfirmFormBase
Provides an generic base class for a confirmation form.

Namespace

Drupal\Core\Form

Code

protected function getCancelText() {
  return t('Cancel');
}