You are here

public function WebformSubmissionFilterForm::resetForm in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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\Form

Code

public function resetForm(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect($this
    ->getRouteMatch()
    ->getRouteName(), $this
    ->getRouteMatch()
    ->getRawParameters()
    ->all());
}