< Manual:Hooks
ApiParseMakeOutputPage | |
---|---|
Available from version 1.32.0 (Gerrit change 340768) Called when preparing the OutputPage object for ApiParse. This is mainly intended for calling OutputPage::addContentOverride() or OutputPage::addContentOverrideCallback() . | |
Define function: | public static function onApiParseMakeOutputPage( ApiBase $module, OutputPage $output ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ApiParseMakeOutputPage": "MyExtensionHooks::onApiParseMakeOutputPage"
}
}
|
Called from: | File(s): api/ApiParse.php Function(s): execute |
Interface: | ApiParseMakeOutputPageHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:ApiParseMakeOutputPage extensions.
Details
$module
: ApiBase (which is also a ContextSource)$output
: OutputPage
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.