function LoggingForm::submitForm
Same name in other branches
- 9 core/modules/system/src/Form/LoggingForm.php \Drupal\system\Form\LoggingForm::submitForm()
Overrides ConfigFormBase::submitForm
File
-
core/
modules/ system/ src/ Form/ LoggingForm.php, line 53
Class
- LoggingForm
- Configure logging settings for this site.
Namespace
Drupal\system\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->config('system.logging')
->set('error_level', $form_state->getValue('error_level'))
->save();
parent::submitForm($form, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.