You are here

public function YamlFormFilterFormBase::resetForm in YAML Form 8

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/YamlFormFilterFormBase.php, line 77

Class

YamlFormFilterFormBase
Provides base class for form filter forms.

Namespace

Drupal\yamlform\Form

Code

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