GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Manual:Hooks/ParserClearState - MediaWiki

< 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": "MediaWiki\\Extension\\MyExtension\\Hooks::onParserClearState"
	}
}
Called from: File(s): Parser/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

Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ParserClearState&oldid=8364096"
Categories:
  • MediaWiki hooks
  • Hooks added in MediaWiki 1.6.0
  • MediaWiki hooks included in Parser.php
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.