| ApiParseMakeOutputPage | |
|---|---|
| Available fromversion 1.32.0 (Gerrit change 340768) Called when preparing the OutputPage object for ApiParse. This is mainly intended for calling OutputPage::addContentOverride() orOutputPage::addContentOverrideCallback(). | |
| Define function: | publicstaticfunctiononApiParseMakeOutputPage(ApiBase$module,OutputPage$output){...} |
| Attach hook: | Inextension.json:{"Hooks":{"ApiParseMakeOutputPage":"MediaWiki\\Extension\\MyExtension\\Hooks::onApiParseMakeOutputPage"}} |
| Called from: | File(s):api/ApiParse.php Function(s):execute |
| Interface: | ApiParseMakeOutputPageHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:ApiParseMakeOutputPage extensions.
$module: ApiBase (which is also a ContextSource)$output: OutputPage