Jump to content

Manual:Hooks/APIGetParamDescription

From mediawiki.org
APIGetParamDescription
Available from version 1.14.0
Removed in version 1.33.0 (Gerrit change 465665)
Use this hook to modify a module's parameter descriptions
Define function:
public static function onAPIGetParamDescription( ApiBase &$module, array &$desc ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"APIGetParamDescription": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIGetParamDescription"
	}
}
Called from: File(s): api/ApiBase.php
Interface: APIGetParamDescriptionHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:APIGetParamDescription extensions.


Details

[edit]
  • &$module: ApiBase object
  • $desc: Array of parameter descriptions