| ParserBeforePreprocess | |
|---|---|
| Available fromversion 1.35.0 (Gerrit change 589458) Called at the beginning of Parser::preprocess() | |
| Define function: | publicstaticfunctiononParserBeforePreprocess(Parser$parser,string&$text,StripState$stripState){...} |
| Attach hook: | Inextension.json:{"Hooks":{"ParserBeforePreprocess":"MediaWiki\\Extension\\MyExtension\\Hooks::onParserBeforePreprocess"}} |
| Called from: | File(s):parser/Parser.php Function(s):preprocess |
| Interface: | ParserBeforePreprocessHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:ParserBeforePreprocess extensions.
$parser: An instance ofParser&$text: A modifiablestring, representing the text to parse$stripState: An instance ofStripState