diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 9d3988e..e7c61ab 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -893,9 +893,18 @@ function system_get_info($type, $name = NULL) { return $module_listing->getInfo($name); } else { - /** @var \Drupal\Core\Extension\ModuleExtensionList $module_listing */ - $module_listing = \Drupal::service('theme_listing'); - return $module_listing->getInfo($name); + // @todo + $info = array(); + $list = system_list($type); + foreach ($list as $shortname => $item) { + if (!empty($item->status)) { + $info[$shortname] = $item->info; + } + } + if (isset($name)) { + return isset($info[$name]) ? $info[$name] : array(); + } + return $info; } }