Closed (works as designed)
Project:
Drupal core
Version:
11.x-dev
Component:
extension system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2020 at 10:39 UTC
Updated:
27 Sep 2025 at 00:26 UTC
Jump to comment: Most recent
Comments
Comment #2
joachim commentedProbably not easy to fix, since getAvailableUpdateFunctions() just looks at get_defined_functions() rather than look in each file.
Comment #8
borisson_Looks like this would be possible with Reflection (https://www.php.net/manual/en/reflectionfunctionabstract.getfilename.php)
Since this is a developer experience improvement, I'm not sure if this is a bug or a task, this feels more like a task.
Comment #11
nicxvan commentedComment #12
nicxvan commentedThis is how hooks worked in procedural land.
We intentionally preserved that with attributes (though it's under discussion)
I would presume we'd preserve that as well if these mive to oop too.
This might not belong with the extension system, but sure exactly where it should be though.
Comment #13
nicxvan commentedI'm going to close this as works as designed.
While it might be kind of confusing it is how it works.