diff -u b/core/modules/system/src/Form/ModulesUninstallForm.php b/core/modules/system/src/Form/ModulesUninstallForm.php --- b/core/modules/system/src/Form/ModulesUninstallForm.php +++ b/core/modules/system/src/Form/ModulesUninstallForm.php @@ -98,7 +98,22 @@ ), ); - $form['modules'] = array(); + $profile = drupal_get_profile(); + + // Sort all modules by their name. + if(!empty($uninstallable)) { + uasort($uninstallable, 'system_sort_modules_by_info_name'); + } + + $form['uninstall'] = array( + '#type' => 'table', + '#header' => array( + 'title' => array('data' => $this->t('Name')), + 'description' => array('data' => $this->t('Description')), + ), + '#empty' => $this->t('There are no items available to uninstall.'), + '#tableselect' => TRUE, + ); // Only build the rest of the form if there are any modules available to // uninstall; @@ -106,7 +121,6 @@ return $form; } - $form['uninstall'] = array(); foreach ($uninstallable as $module) { // Define