MediaWiki REL1_37
MediaWiki\Hook\OutputPageBeforeHTMLHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\OutputPageBeforeHTMLHook:

Public Member Functions

 onOutputPageBeforeHTML ( $out, &$text)
 This hook is called when a page has been processed by the parser and the resulting HTML is about to be displayed.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file OutputPageBeforeHTMLHook.php.

Member Function Documentation

◆ onOutputPageBeforeHTML()

MediaWiki\Hook\OutputPageBeforeHTMLHook::onOutputPageBeforeHTML (   $out,
$text 
)

This hook is called when a page has been processed by the parser and the resulting HTML is about to be displayed.

Since
1.35
Parameters
OutputPage$outOutputPage object that corresponds to the page
string&$textText that will be displayed, in HTML
Returns
bool|void This hook must not abort, it must return true or null.

Implemented in MediaWiki\Api\ApiHookRunner, and MediaWiki\HookContainer\HookRunner.


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