public function GroupMenuSettingsForm::submitForm in Group Menu 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 ConfigFormBase::submitForm
File
- src/
Form/ GroupMenuSettingsForm.php, line 48
Class
- GroupMenuSettingsForm
- Class GroupMenuSettingsForm.
Namespace
Drupal\groupmenu\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$config = $this
->config('groupmenu.settings');
$form_hide_list = $form_state
->getValue('groupmenu_hide_list');
$config
->set('groupmenu_hide_list', $form_hide_list)
->save();
parent::submitForm($form, $form_state);
}