function DblogFilterForm::resetForm
Same name in other branches
- 9 core/modules/dblog/src/Form/DblogFilterForm.php \Drupal\dblog\Form\DblogFilterForm::resetForm()
- 8.9.x core/modules/dblog/src/Form/DblogFilterForm.php \Drupal\dblog\Form\DblogFilterForm::resetForm()
- 11.x 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\FormCode
public function resetForm(array &$form, FormStateInterface $form_state) {
$this->getRequest()
->getSession()
->remove('dblog_overview_filter');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.