Closed (fixed)
Project:
Drupal core
Version:
main
Component:
extension system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Aug 2026 at 08:35 UTC
Updated:
12 Sep 2026 at 11:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirComment #5
longwaveComment #6
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #7
nicxvan commentedMaybe this is a good time to unify the HookCollectorPass and ThemeHookCollectorPass directory traversal?
Comment #8
longwaveAdded a base class and moved the shared code for both passed into there.
Comment #9
berdirI like this. it will conflict with #3574003: Properly include install files for install hook_requirements, but we're still discussing there and that's easy enough to resolve.
Just one question on the MR, not sure what our policy is these days on docblocks of test methods?
Comment #10
berdirThanks for the reply.
I think this is good then. This is main only, backport not possible as 11.x still needs to scan everything to look for include files.
And nice to have a start of a base class between the two. We originally decided against it as there was little that could be shared, but it's starting to converge and will more I guess, as .module/.theme and other BC layers will go away in D13.
Comment #11
alexpottCommitted and pushed 7d62c7b7785 to main. Thanks!