Problem/Motivation
Both modules and themes use ModuleHandlerInterface::buildModuleDependencies(). This code should be in the extension listing code as this is where this info is populated.
Proposed resolution
Move the code.
Remaining tasks
- add deprecation test
- review/commit
User interface changes
None
API changes
Deprecate ModuleHandlerInterface::buildModuleDependencies()
in favour of protected static ExtensionList::buildDependencies()
Data model changes
None
Release notes snippet
None