DblogFilterForm::submitForm

public DblogFilterForm::submitForm(array &$form, FormStateInterface $form_state)

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

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

Class

DblogFilterForm
Provides the database logging filter form.

Namespace

Drupal\dblog\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $filters = dblog_filters();
  foreach ($filters as $name => $filter) {
    if ($form_state->hasValue($name)) {
      $_SESSION['dblog_overview_filter'][$name] = $form_state->getValue($name);
    }
  }
}
doc_Drupal
2016-10-29 09:01:18
Comments
Leave a Comment

Please login to continue.