diff -u b/core/modules/system/src/Form/ModulesListForm.php b/core/modules/system/src/Form/ModulesListForm.php --- b/core/modules/system/src/Form/ModulesListForm.php +++ b/core/modules/system/src/Form/ModulesListForm.php @@ -258,10 +258,6 @@ '#disabled' => (bool) $module->status, ]; - if ($module->status) { - $row['enable']['#attributes']['title'] = t('Uninstall this module on the Uninstall page.'); - } - // Disable the checkbox for required modules. if (!empty($module->info['required'])) { // Used when displaying modules that are required by the installation profile @@ -326,6 +322,10 @@ '#disabled' => (bool) $module->status, ]; + if ($module->status) { + $row['enable']['#attributes']['title'] = t('Uninstall this module on the Uninstall page.'); + } + // Disable the checkbox for required modules. if (!empty($module->info['required'])) { // Used when displaying modules that are required by the installation profile