public function DemoResetConfirm::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/ DemoResetConfirm.php, line 73
Class
- DemoResetConfirm
- Returns demo_reset_confirm from to make sure that you really want to reset the configuration.
Namespace
Drupal\demo\FormCode
public function getConfirmText() {
return t('Delete');
}