Problem/Motivation
Hook info doesn't properly pick up helpers from automatically included .inc anymore.
This does not cause an issue currently because the hooks themselves are in these includes and they got loaded as any other include would
However, once hooks are converted and only helpers remain , there's no mechanism left which would include these files.
Steps to reproduce
Try converting a hook_info.
Proposed resolution
hook_hook_info() is used to define include files which are automatically loaded by module handler. This got removed in #3442009: OOP hooks using attributes and event dispatcher and needs to be restored.
Remaining tasks
N/A
User interface changes
N/A
Introduced terminology
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Issue fork drupal-3484105
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3484105-hook-info-must
changes, plain diff MR !9976
Comments
Comment #3
nicxvan commentedComment #4
nicxvan commentedComment #5
nicxvan commentedComment #6
nicxvan commentedComment #7
nicxvan commentedComment #8
nicxvan commentedComment #9
godotislateCouple small comments.
Comment #10
godotislateComment #11
nicxvan commentedComment #12
godotislatelgtm
Comment #13
nicxvan commentedTest failure was unrelated, rerunning
Comment #15
catchCommitted/pushed to 11.x and cherry-picked to 11.1.x, thanks!