public function Settings::submitForm in Simple Access 8.3
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/ Settings.php, line 60
Class
- Settings
- Profiles simple_access_settings_page form.
Namespace
Drupal\simple_access\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->configFactory()
->getEditable('simple_access.settings')
->set('display', $form_state
->getValue('display'))
->set('show_groups', $form_state
->getValue('show_groups'))
->save();
parent::submitForm($form, $form_state);
}