diff --git a/core/modules/system/lib/Drupal/system/Controller/SystemController.php b/core/modules/system/lib/Drupal/system/Controller/SystemController.php index 5c62574..41825c8 100644 --- a/core/modules/system/lib/Drupal/system/Controller/SystemController.php +++ b/core/modules/system/lib/Drupal/system/Controller/SystemController.php @@ -314,7 +314,7 @@ public function themesPage() { '#theme_groups' => $theme_groups, '#theme_group_titles' => $theme_group_titles, ); - $build[] = drupal_get_form(new ThemeAdminForm(), $admin_theme_options); + $build[] = \Drupal::formBuilder()->getForm(new ThemeAdminForm(), $admin_theme_options); return $build; } diff --git a/core/modules/system/lib/Drupal/system/Form/ThemeAdminForm.php b/core/modules/system/lib/Drupal/system/Form/ThemeAdminForm.php index 9fa4bb1..8bb44ef 100644 --- a/core/modules/system/lib/Drupal/system/Form/ThemeAdminForm.php +++ b/core/modules/system/lib/Drupal/system/Form/ThemeAdminForm.php @@ -53,4 +53,5 @@ public function submitForm(array &$form, array &$form_state) { drupal_set_message($this->t('The configuration options have been saved.')); $this->config('system.theme')->set('admin', $form_state['values']['admin_theme'])->save(); } + }