Only available for extensions that already require MW 1.35+
See subtasks for individual extensions
Implement the Hook system added in MediaWiki 1.35 in the extensions, see Hooks.md for documentation.
Only available for extensions that already require MW 1.35+
See subtasks for individual extensions
Implement the Hook system added in MediaWiki 1.35 in the extensions, see Hooks.md for documentation.
| Status | Subtype | Assigned | Task | |
|---|---|---|---|---|
| · · · | ||||
| Open | None | T254670 [EPIC] Update extensions that run hooks to use the new HookContainer/HookRunner system | ||
| Resolved | • nnikkhoui | T254381 Update Example and BoilerPlate extensions for new hooks system | ||
| Open | None | T263353 Update all Wikimedia production extensions to use the new HookContainer/HookRunner system | ||
| Open | None | T263364 Update all tarballed extensions to use the new HookContainer/HookRunner system | ||
| Duplicate | None | T271042 Make HookRunnerTest accessible for extensions | ||
| Resolved | Daimona | T271620 Make HookRunnerTest usable in extension tests | ||
| Declined | None | T283474 Update StructuredDiscussions to use the new HookContainer/HookRunner system | ||
| Resolved | Umherirrender | T271018 Update LocalisationUpdate to use the new HookContainer/HookRunner system | ||
| Resolved | Yaron_Koren | T338453 Update AdminLinks to use the new HookContainer/HookRunner system | ||
| · · · |
https://lists.wikimedia.org/pipermail/wikitech-l/2020-May/093450.html
Using the new system in extensions ---------------------------------- Extensions should create their own HookRunner classes and use them to call hooks. HookContainer::run() should be used instead of Hooks::run(). As for handling hooks, I think it's too early for a mass migration of extensions to the new registration system as described in the RFC.[3] Extension authors who are keen to pilot the new system can give it a go. Make sure you add Nikki and me as reviewers. More information about the new system can be found in docs/Hooks.md [4]. The patch to add it should soon be merged.
I understood that to be referring to the registration of extension's hook handlers, not the method by which extensions themselves call hooks
[1] https://gerrit.wikimedia.org/r/c/mediawiki/core/+/571297
[2] https://gerrit.wikimedia.org/r/c/mediawiki/core/+/581225
[3] https://phabricator.wikimedia.org/T240307 (currently marked as "resolved" even if it still depends on T250859 "Rename BeforeParserrenderImageGalleryHook to BeforeParserRenderImageGalleryHook" and T253768 "No easy way to suppress hard-deprecation warnings for hooks", both still open)
[4] https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/323ac073d38ec30a97b73b4a25999079b3a125d3/docs/Hooks.md>