Problem/Motivation

In D7, this module contained a number of submodules, to enhance performance.
Starting with D8, OO-modelling prevents the loading of all code on a page.

So, some modules became obsolete/redundant/deprecated.
They must be disabled explicitely, so we can remove them in D12.

Steps to reproduce

Install Workflow and submodules in D8, D9.
Upgrade to D10, D11, the submodules are invisible.

Proposed resolution

Add an update hook in workflow.install file.

/**
 * Removes obsolete submodules.
 */
function workflow_update_8013(&$sandbox) {
  if (version_compare(\Drupal::VERSION, '11.0', '>=')) {
    \Drupal::service('module_installer')->uninstall(['workflowfield']);
    \Drupal::service('module_installer')->uninstall(['workflow_operations']);
    \Drupal::service('module_installer')->uninstall(['workflow_ui']);
  }

Comments

johnv created an issue. See original summary.

  • johnv committed dacea77f on 2.1.x
    Issue #3626657: Uninstall outdated submodules
    
johnv’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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