public function LoggingForm::submitForm

Implements \Drupal\Core\Form\FormInterface::submitForm().

Overrides SystemConfigFormBase::submitForm

File

drupal/core/modules/system/lib/Drupal/system/Form/LoggingForm.php, line 48
Contains \Drupal\system\Form\LoggingForm.

Class

LoggingForm
Configure logging settings for this site.

Namespace

Drupal\system\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->configFactory
    ->get('system.logging')
    ->set('error_level', $form_state['values']['error_level'])
    ->save();
  parent::submitForm($form, $form_state);
}