public function YamlFormtemplatesFilterForm::resetForm in YAML Form 8
Resets the filter selection.
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
- modules/
yamlform_templates/ src/ Form/ YamlFormTemplatesFilterForm.php, line 76
Class
- YamlFormtemplatesFilterForm
- Provides the form templates filter form.
Namespace
Drupal\yamlform_templates\FormCode
public function resetForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect($this
->getRouteMatch()
->getRouteName(), $this
->getRouteMatch()
->getRawParameters()
->all());
}