function node_form_system_themes_admin_form_submit

Same name and namespace in other branches
  1. 9 core/modules/node/node.module \node_form_system_themes_admin_form_submit()
  2. 8.9.x core/modules/node/node.module \node_form_system_themes_admin_form_submit()
  3. 10 core/modules/node/node.module \node_form_system_themes_admin_form_submit()

Form submission handler for system_themes_admin_form().

See also

node_form_system_themes_admin_form_alter()

1 string reference to 'node_form_system_themes_admin_form_submit'
node_form_system_themes_admin_form_alter in core/modules/node/node.module
Implements hook_form_FORM_ID_alter().

File

core/modules/node/node.module, line 698

Code

function node_form_system_themes_admin_form_submit($form, FormStateInterface $form_state) {
    \Drupal::configFactory()->getEditable('node.settings')
        ->set('use_admin_theme', $form_state->getValue('use_admin_theme'))
        ->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.