From c17906e3f95e235bcb0c73bc7a7bb08fa5a277c4 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Sun, 5 Jan 2014 20:42:18 -0800 Subject: [PATCH] Issue #2167517 by mtift, ianthomas_uk: System_custom_theme calls removed function drupal_container. --- core/includes/install.core.inc | 2 +- core/modules/system/system.module | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index 5594343985cf..e6a5338df2f7 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -341,7 +341,7 @@ function install_begin_request(&$install_state) { // If it is not, replace the configuration storage with the InstallStorage // implementation, for the following reasons: - // - The first call into drupal_container() will try to set up the regular + // - The first call to $kernel->getContainer() will try to set up the regular // runtime configuration storage, using the CachedStorage by default. It // calls config_get_config_directory() to retrieve the config directory to // use, but that throws an exception, since $config_directories is not diff --git a/core/modules/system/system.module b/core/modules/system/system.module index f9ae056b30b0..fac4c2150e5e 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -2146,19 +2146,6 @@ function system_page_build(&$page) { } } -/** - * Implements hook_custom_theme(). - */ -function system_custom_theme() { - if (drupal_container()->isScopeActive('request')) { - $request = \Drupal::request(); - $path = $request->attributes->get('_system_path'); - if (user_access('view the administration theme') && path_is_admin($path)) { - return \Drupal::config('system.theme')->get('admin'); - } - } -} - /** * Implements hook_form_FORM_ID_alter(). */ -- GitLab