public function SettingsForm::submitForm in Node Accessibility 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/ SettingsForm.php, line 57
Class
- SettingsForm
- Defines a form that configures node_accessibility settings.
Namespace
Drupal\node_accessibility\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('node_accessibility.settings')
->set('alter_revision_menu', $values['alter_revision_menu'])
->set('revision_log_counting', $values['revision_log_counting'])
->save();
parent::submitForm($form, $form_state);
}