Returns a caption for the link which cancels the action.
Return value
string
The form cancellation text.
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');
}