public function ContentLogFilterForm::submitForm in Content Synchronization 8.2
Same name and namespace in other branches
- 8 src/Form/ContentLogFilterForm.php \Drupal\content_sync\Form\ContentLogFilterForm::submitForm()
- 3.0.x 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\FormCode
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);
}
}
}