< Manual:Hooks
| ParserTestParser | |
|---|---|
| Available from version 1.6.0 called when creating a new instance of Parser for parser tests | |
| Define function: | public static function onParserTestParser( $parser ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ParserTestParser": "MyExtensionHooks::onParserTestParser"
}
}
|
| Called from: | File(s): ../tests/parser/ParserTestRunner.php |
| Interface: | ParserTestParserHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ParserTestParser extensions.
Details
- $parser: Parser object created
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.