Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
From #2240709: ConfigImportUITest::testImport fails when the module list changes.
Proposed resolution
Provide canonical module ordering based on dependencies in the extension system, with modules of the same weight ordered alphabetically.
Remaining tasks
- Patch needed. Does the method belong in ExtensionDiscovery? ModuleHandler? (Both provide some internal sorting functionality already).
- Needs thorough test coverage.
- Use the new method in
ConfigImporter::createExtensionChangeList()
.
API changes
API addition only.
Comments
Comment #1
dawehnerSounds like a potential method on #2208429: Extension System, Part III: ExtensionList, ModuleExtensionList and ProfileExtensionList to be honest.
Comment #2
dawehnerComment #15
alexpottThis needs to work for themes too - see #3001430: Unable to uninstall base theme and subtheme via config sync at the same time