function NodeFormHooks::systemThemesAdminFormSubmit

Form submission handler for system_themes_admin_form().

See also

self::formSystemThemesAdminFormAlter

File

core/modules/node/src/Hook/NodeFormHooks.php, line 51

Class

NodeFormHooks
Form hook implementations for the node module.

Namespace

Drupal\node\Hook

Code

public static function systemThemesAdminFormSubmit($form, FormStateInterface $form_state) : void {
  \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.