public function MaestroTraceDeleteProcess::submitForm in Maestro 3.x
Same name and namespace in other branches
- 8.2 src/Form/MaestroTraceDeleteProcess.php \Drupal\maestro\Form\MaestroTraceDeleteProcess::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormInterface::submitForm
File
- src/
Form/ MaestroTraceDeleteProcess.php, line 94
Class
- MaestroTraceDeleteProcess
- The confirm form for deleting a process.
Namespace
Drupal\maestro\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
MaestroEngine::deleteProcess($this->processID);
\Drupal::messenger()
->addMessage(t('Process and Task history successfully deleted'));
$form_state
->setRedirect('view.maestro_outstanding_tasks.maestro_outstanding_tasks');
}