function RulesSettingsForm::submitForm

Overrides ConfigFormBase::submitForm

File

src/Form/RulesSettingsForm.php, line 97

Class

RulesSettingsForm
Provides rules settings form.

Namespace

Drupal\rules\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->config('rules.settings')
        ->set('system_log.log_level', $form_state->getValue([
        'system_log',
        'log_level',
    ]))
        ->set('debug_log.enabled', $form_state->getValue([
        'debug_log',
        'enabled',
    ]))
        ->set('debug_log.system_debug', $form_state->getValue([
        'debug_log',
        'settings',
        'system_debug',
    ]))
        ->set('debug_log.log_level', $form_state->getValue([
        'debug_log',
        'settings',
        'log_level',
    ]))
        ->save();
    parent::submitForm($form, $form_state);
}