You are here

public function DblogFilterForm::resetForm in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/dblog/src/Form/DblogFilterForm.php \Drupal\dblog\Form\DblogFilterForm::resetForm()

Resets the filter form.

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

core/modules/dblog/src/Form/DblogFilterForm.php, line 98

Class

DblogFilterForm
Provides the database logging filter form.

Namespace

Drupal\dblog\Form

Code

public function resetForm(array &$form, FormStateInterface $form_state) {
  $this
    ->getRequest()
    ->getSession()
    ->remove('dblog_overview_filter');
}