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