function node_form_system_themes_admin_form_submit
Same name in other branches
- 8.9.x core/modules/node/node.module \node_form_system_themes_admin_form_submit()
- 10 core/modules/node/node.module \node_form_system_themes_admin_form_submit()
- 11.x 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 764
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.