diff --git a/core/modules/config/src/Tests/ConfigImportAllTest.php b/core/modules/config/src/Tests/ConfigImportAllTest.php index d496973..9fda5fd 100644 --- a/core/modules/config/src/Tests/ConfigImportAllTest.php +++ b/core/modules/config/src/Tests/ConfigImportAllTest.php @@ -102,7 +102,7 @@ public function testInstallUninstall() { // Ensure that only core required modules and the install profile can not be uninstalled. $validation_reasons = \Drupal::service('module_installer')->validateUninstall(array_keys($all_modules)); - $this->assertEqual(['standard', 'system', 'user'], array_keys($validation_reasons)); + $this->assertEqual(['system', 'user', 'standard'], array_keys($validation_reasons)); $modules_to_uninstall = array_filter($all_modules, function ($module) use ($validation_reasons) { // Filter required and not enabled modules. diff --git a/core/modules/system/system.module b/core/modules/system/system.module index 9e541c4..1c08e3f 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -888,7 +888,12 @@ function system_check_directory($form_element, FormStateInterface $form_state) { */ function system_get_info($type, $name = NULL) { if ($type == 'module') { - return \Drupal::service('module_listing')->getInfo($name); + if (isset($name)) { + return \Drupal::service('module_listing')->getInfo($name); + } + else { + return \Drupal::service('module_listing')->getAllInfo(); + } } else { // @todo