Problem/Motivation

Drupal 8 removes the concept of enabled/disabled modules. Instead, a module is uninstalled on the admin form at admin/modules/uninstall. Currently we're not altering that form, so hidden modules (like paranoia itself) can be uninstalled.

Proposed resolution

The system_modules_uninstall form does not consult the hidden attribute of extensions, so #2894994: Hide modules via hook_system_info_alter() won't help here.

Instead we need to alter the system_modules_uninstall form to remove hidden modules.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 paranoia-uninstall-2898016-2.patch1.05 KBnedjo

Comments

nedjo created an issue. See original summary.

nedjo’s picture

Status: Active » Postponed
StatusFileSize
new1.05 KB

Here's a patch. Postponed pending #2894994: Hide modules via hook_system_info_alter(), which changes the structure of the data returned by hook_paranoia_hide_modules().

  • nedjo committed c6c135b on 8.x-1.x
    Issue #2898016 by nedjo: Hidden modules can be uninstalled
    
nedjo’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.