MediaWiki REL1_35
MediaWiki\Hook\ParserLimitReportPrepareHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 12 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: