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