Commit c17906e3 authored by webchick's avatar webchick

Issue #2167517 by mtift, ianthomas_uk: System_custom_theme calls removed function drupal_container.

parent 69f7a1ef
......@@ -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
......
......@@ -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().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment