Page MenuHomePhabricator

Make extjsonuploader provide data about hooks defined by an extension
Open, Needs TriagePublic

Description

The extension infobox uses extjsonuploader to automatically list hooks which are implemented by an extension (and add tracking categories), which is great, but it doesn't do that for hooks defined by the extension (ie. newhooks parameters as opposed to hooks parameters).

Tricky as there isn't any machine-readable way to designate a file as a hook interface, although simply using interfaces whose names end with Hook might be close enough. Maybe there should be a standard way to register the hook runner / container of an extension.

See also: T222477: Parse MediaWiki hook documentation from hook interfaces and upload it to MediaWiki.org