Manual:Hooks/ParserLimitReport

From MediaWiki.org

Jump to: navigation, search
ParserLimitReport
Available from version 1.12.0
called at the end of Parser::parse() when the parser will include comments about size of the text parsed

*Define function:
function fnMyHook($parser, $limitReport) { ... }

*Attach hook:
$wgHooks['ParserLimitReport'][] = 'fnMyHook';
Called from: Parser.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ParserLimitReport extensions.


[edit] Details

  • $parser: Parser object
  • $limitReport: text that will be included (without comment tags)
Personal tools