function ConfigForm::submitForm

File

webprofiler/src/Form/ConfigForm.php, line 189

Class

ConfigForm
Class ConfigForm

Namespace

Drupal\webprofiler\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    $this->config('webprofiler.config')
        ->set('purge_on_cache_clear', $form_state->getValue('purge_on_cache_clear'))
        ->set('storage', $form_state->getValue('storage'))
        ->set('exclude', $form_state->getValue('exclude'))
        ->set('active_toolbar_items', $form_state->getValue('active_toolbar_items'))
        ->set('ide_link', $form_state->getValue('ide_link'))
        ->set('ide_link_remote', $form_state->getValue('ide_link_remote'))
        ->set('ide_link_local', $form_state->getValue('ide_link_local'))
        ->set('query_sort', $form_state->getValue('query_sort'))
        ->set('query_highlight', $form_state->getValue('query_highlight'))
        ->save();
    parent::submitForm($form, $form_state);
}