You are here

public function WebformOptionsFilterForm::resetForm in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Form/WebformOptionsFilterForm.php \Drupal\webform\Form\WebformOptionsFilterForm::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/WebformOptionsFilterForm.php, line 84

Class

WebformOptionsFilterForm
Provides the webform options 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());
}