You are here

public function WebformOptionsCustomFilterForm::resetForm in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_options_custom/src/Form/WebformOptionsCustomFilterForm.php \Drupal\webform_options_custom\Form\WebformOptionsCustomFilterForm::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_options_custom/src/Form/WebformOptionsCustomFilterForm.php, line 84

Class

WebformOptionsCustomFilterForm
Provides the webform options custom filter form.

Namespace

Drupal\webform_options_custom\Form

Code

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