MediaWiki REL1_37
MediaWiki\Api\Hook\ApiParseMakeOutputPageHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Api\Hook\ApiParseMakeOutputPageHook:

Public Member Functions

 onApiParseMakeOutputPage ( $module, $output)
 This hook is called when preparing the OutputPage object for ApiParse.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ApiParseMakeOutputPage" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file ApiParseMakeOutputPageHook.php.

Member Function Documentation

◆ onApiParseMakeOutputPage()

MediaWiki\Api\Hook\ApiParseMakeOutputPageHook::onApiParseMakeOutputPage (   $module,
  $output 
)

This hook is called when preparing the OutputPage object for ApiParse.

This is mainly intended for calling OutputPage::addContentOverride() or OutputPage::addContentOverrideCallback().

Since
1.35
Parameters
ApiBase$moduleApiBase (which is also a ContextSource)
OutputPage$output
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner.


The documentation for this interface was generated from the following file: