public function WebformTemplatesFilterForm::resetForm in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_templates/src/Form/WebformTemplatesFilterForm.php \Drupal\webform_templates\Form\WebformTemplatesFilterForm::resetForm()
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/
webform_templates/ src/ Form/ WebformTemplatesFilterForm.php, line 116
Class
- WebformTemplatesFilterForm
- Provides the webform templates filter webform.
Namespace
Drupal\webform_templates\FormCode
public function resetForm(array &$form, FormStateInterface $form_state) {
$form_state
->setRedirect($this
->getRouteMatch()
->getRouteName(), $this
->getRouteMatch()
->getRawParameters()
->all());
}