Jump to content

Manual:Hooks/ParserClearState

From mediawiki.org
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": "MediaWiki\\Extension\\MyExtension\\Hooks::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

[edit]

$parser: Parser object being cleared

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy