Manual:Hooks/APIGetDescription
This feature was removed from MediaWiki core in version 1.33.0 (after being deprecated in 1.25.0). Please see APIGetDescriptionMessages for an alternative way to use this feature. |
APIGetDescription | |
---|---|
Available from version 1.19.0 Removed in version 1.33.0 (Gerrit change 465665) Use this hook to modify a module's descriptions | |
Define function: | public static function onAPIGetDescription( ApiBase &$module, array &$desc ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"APIGetDescription": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIGetDescription"
}
}
|
Called from: | File(s): api/ApiBase.php |
Interface: | APIGetDescriptionHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:APIGetDescription extensions.
Details
edit- &$module: ApiBase object
- $desc: Array of descriptions