3 namespace MediaWiki\Api\Hook
;
5 use MediaWiki\Api\ApiBase
;
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "APIHelpModifyOutput" to register handlers implementing this interface.
11 * @stable to implement
14 interface APIHelpModifyOutputHook
{
16 * Use this hook to modify an API module's help output.
20 * @param ApiBase $module
21 * @param string[] &$help Array of HTML strings to be joined for the output
22 * @param array $options Array of formatting options passed to ApiHelp::getHelp
23 * @param array &$tocData If a TOC is being generated, this array has keys as anchors in
24 * the page and values as for SectionMetadata::fromLegacy().
25 * @return bool|void True or no return value to continue or false to abort
27 public function onAPIHelpModifyOutput( $module, &$help, $options, &$tocData );