MediaWiki REL1_37
MediaWiki\Hook\ParserLimitReportPrepareHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\ParserLimitReportPrepareHook:

Public Member Functions

 onParserLimitReportPrepare ( $parser, $output)
 This hook is called at the end of Parser:parse() when the parser will include comments about size of the text parsed.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file ParserLimitReportPrepareHook.php.

Member Function Documentation

◆ onParserLimitReportPrepare()

MediaWiki\Hook\ParserLimitReportPrepareHook::onParserLimitReportPrepare (   $parser,
  $output 
)

This hook is called at the end of Parser:parse() when the parser will include comments about size of the text parsed.

Hooks should use $output->setLimitReportData() to populate data. Functions for this hook should not use $wgLang; do that in ParserLimitReportFormat instead.

Since
1.35
Parameters
Parser$parser
ParserOutput$output
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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