You are here

function log_form_system_themes_admin_form_submit in Log entity 8

Form submission handler for system_themes_admin_form().

See also

log_form_system_themes_admin_form_alter()

1 string reference to 'log_form_system_themes_admin_form_submit'
log_form_system_themes_admin_form_alter in ./log.module
Implements hook_form_FORM_ID_alter().

File

./log.module, line 153
Contains log.module..

Code

function log_form_system_themes_admin_form_submit($form, FormStateInterface $form_state) {
  \Drupal::configFactory()
    ->getEditable('log.settings')
    ->set('log_use_admin_theme', $form_state
    ->getValue('log_use_admin_theme'))
    ->save();
  \Drupal::service('router.builder')
    ->setRebuildNeeded();
}