You are here

function demo_config_delete_submit in Demonstration site (Sandbox / Snapshot) 8

Delete button submit handler for demo_manage_form().

1 string reference to 'demo_config_delete_submit'
DeleteConfigForm::buildForm in src/Form/DeleteConfigForm.php
form to delete config snapshots.

File

./demo.module, line 690

Code

function demo_config_delete_submit($form, &$form_state) {
  $filename = $form_state
    ->getValue([
    'filename',
  ]);
  $filename = substr($filename, 15);
  $url = Url::fromRoute('demo.delete_config_confirm_sub', $route_parameters = [
    'filename' => $filename,
  ]);
  $form_state
    ->setRedirectUrl($url);
  return;
}