public function ThemeAdminForm::submitForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/src/Form/ThemeAdminForm.php \Drupal\system\Form\ThemeAdminForm::submitForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides ConfigFormBase::submitForm
File
- core/
modules/ system/ src/ Form/ ThemeAdminForm.php, line 58
Class
- ThemeAdminForm
- Form to select the administration theme.
Namespace
Drupal\system\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('system.theme')
->set('admin', $form_state
->getValue('admin_theme'))
->save();
}