function demo_manage_delete_submit in Demonstration site (Sandbox / Snapshot) 8
Same name and namespace in other branches
- 6 demo.admin.inc \demo_manage_delete_submit()
- 7 demo.admin.inc \demo_manage_delete_submit()
Delete button submit handler for demo_manage_form().
1 string reference to 'demo_manage_delete_submit'
- DemoManageForm::buildForm in src/
Form/ DemoManageForm.php - Form constructor.
File
- ./
demo.module, line 680
Code
function demo_manage_delete_submit($form, &$form_state) {
$filename = $form_state
->getValue([
'filename',
]);
$url = Url::fromRoute('demo.delete_confirm', $route_parameters = [
'filename' => $filename,
]);
$form_state
->setRedirectUrl($url);
return;
}