function SettingsForm::submitForm
Same name in other branches
- 4.x src/Form/SettingsForm.php \Drupal\devel\Form\SettingsForm::submitForm()
Overrides ConfigFormBase::submitForm
File
-
src/
Form/ SettingsForm.php, line 170
Class
- SettingsForm
- Defines a form that configures devel settings.
Namespace
Drupal\devel\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) : void {
$values = $form_state->getValues();
$this->config
->set('page_alter', $values['page_alter'])
->set('raw_names', $values['raw_names'])
->set('error_handlers', $values['error_handlers'])
->set('rebuild_theme', $values['rebuild_theme'])
->set('devel_dumper', $values['dumper'])
->set('debug_logfile', $values['debug_logfile'] ?: 'temporary://drupal_debug.txt')
->save();
parent::submitForm($form, $form_state);
}