public function Editoria11ySettings::submitForm in Editoria11y Accessibility Checker 1.0.x
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/ Editoria11ySettings.php, line 117
Class
- Editoria11ySettings
- Class Editoria11ySettings.
Namespace
Drupal\editoria11y\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('editoria11y.settings')
->set('ignore_containers', $form_state
->getValue('ignore_containers'))
->set('assertiveness', $form_state
->getValue('assertiveness'))
->set('no_load', $form_state
->getValue('no_load'))
->set('content_root', $form_state
->getValue('content_root'))
->set('allow_overflow', $form_state
->getValue('allow_overflow'))
->set('download_links', $form_state
->getValue('download_links'))
->set('embedded_content_warning', $form_state
->getValue('embedded_content_warning'))
->set('hidden_handlers', $form_state
->getValue('hidden_handlers'))
->save();
parent::submitForm($form, $form_state);
}