public function ModuleFilterSettingsForm::submitForm in Module Filter 8.3
Same name and namespace in other branches
- 8 src/Form/ModuleFilterSettingsForm.php \Drupal\module_filter\Form\ModuleFilterSettingsForm::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 ConfigFormBase::submitForm
File
- src/
Form/ ModuleFilterSettingsForm.php, line 53
Class
- ModuleFilterSettingsForm
- Settings form for Module Filter.
Namespace
Drupal\module_filter\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('module_filter.settings')
->set('tabs', $values['tabs'])
->set('path', $values['path'])
->save();
parent::submitForm($form, $form_state);
}