public function DemoDeleteConfirm::getConfirmText in Demonstration site (Sandbox / Snapshot) 8
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ConfirmFormBase::getConfirmText
File
- src/
Form/ DemoDeleteConfirm.php, line 76
Class
- DemoDeleteConfirm
- This class return the demo_delete_confirm, a form where you will be asked to be sure to delete your config file.
Namespace
Drupal\demo\FormCode
public function getConfirmText() {
return t('Delete');
}