< Manual:Hooks
ParserClearState | |
---|---|
Available from version 1.6.0 called at the end of Parser::clearState() | |
Define function: | public static function onParserClearState( &$parser ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ParserClearState": "MyExtensionHooks::onParserClearState"
}
}
|
Called from: | File(s): Parser.php |
Interface: | ParserClearStateHook.php |
For more information about attaching hooks, see Manual:Hooks
For examples of extensions using this hook, see Category:ParserClearState extensions.
Details
$parser: Parser object being cleared
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.