You are here

public function LoggerFilterForm::submitForm in MongoDB 8

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

src/Form/LoggerFilterForm.php, line 103
Contains \Drupal\mongodb\Form\DblogFilterForm.

Class

LoggerFilterForm
Provides the MongoDB logging filter form.

Namespace

Drupal\mongodb\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $filters = $this
    ->getFilters();
  foreach ($filters as $name => $filter) {
    if (isset($form_state['values'][$name])) {
      $_SESSION['mongodb_watchdog_overview_filter'][$name] = $form_state['values'][$name];
    }
  }
}