Merge "Refactor ContributionsSpecialPage->contributionsSub to support markup overrides"
[mediawiki.git] / includes / api / Hook / APIHelpModifyOutputHook.php
blobb07a97378be13607db82e07668c6c892ec6146c8
1 <?php
3 namespace MediaWiki\Api\Hook;
5 use MediaWiki\Api\ApiBase;
7 /**
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
12 * @ingroup Hooks
14 interface APIHelpModifyOutputHook {
15 /**
16 * Use this hook to modify an API module's help output.
18 * @since 1.35
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 );