public function ChecklistapiChecklistForm::clear in Checklist API 8
Form submission handler for the 'clear' action.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
File
- src/
Form/ ChecklistapiChecklistForm.php, line 238
Class
- ChecklistapiChecklistForm
- Provides a checklist form.
Namespace
Drupal\checklistapi\FormCode
public function clear(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect($form['#checklist']
->getRouteName() . '.clear');
}