diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 93e4772..c35764e 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -897,7 +897,8 @@ function system_rebuild_module_data() { // combined into one variable, because the $modules_cache variable is reset by // reference from system_list_reset() during the rebuild. if (!isset($modules_cache)) { - $modules = _system_rebuild_module_data(); + \Drupal::service('module_listing')->reset(); + $modules = \Drupal::service('module_listing')->listExtensions(); $files = array(); ksort($modules); // Add status, weight, and schema version.