You are here

public function ContentLogFilterForm::submitForm in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 src/Form/ContentLogFilterForm.php \Drupal\content_sync\Form\ContentLogFilterForm::submitForm()
  2. 8 src/Form/ContentLogFilterForm.php \Drupal\content_sync\Form\ContentLogFilterForm::submitForm()

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/ContentLogFilterForm.php, line 75

Class

ContentLogFilterForm
Provides the database logging filter form.

Namespace

Drupal\content_sync\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $filters = cs_log_filters();
  foreach ($filters as $name => $filter) {
    if ($form_state
      ->hasValue($name)) {
      $_SESSION['cs_log_overview_filter'][$name] = $form_state
        ->getValue($name);
    }
  }
}