You are here

function eck_form_system_themes_admin_form_submit in Entity Construction Kit (ECK) 8

Form submission handler for system_themes_admin_form().

See also

eck_form_system_themes_admin_form_alter()

1 string reference to 'eck_form_system_themes_admin_form_submit'
eck_form_system_themes_admin_form_alter in ./eck.module
Implements hook_form_FORM_ID_alter().

File

./eck.module, line 320
Contains hook implementations.

Code

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