Manual:Hooks/ParserGetVariableValueVarCache

Category:MediaWiki hooks#ParserGetVariableValueVarCache Category:Hooks added in MediaWiki 1.6.0#ParserGetVariableValueVarCache Category:MediaWiki deprecated or obsolete features#ParserGetVariableValueVarCache Category:Hooks removed in MediaWiki 1.39.0#ParserGetVariableValueVarCache Category:Hooks deprecated in MediaWiki 1.35.0#ParserGetVariableValueVarCache
ParserGetVariableValueVarCache
Available from version 1.6.0
Removed in version 1.39.0 (Gerrit change 822667)Category:Removed hooks#ParserGetVariableValueVarCache
use this to change the value of the variable cache or return false to not use it
Define function:
public static function onParserGetVariableValueVarCache( Parser $parser, array $varCache ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ParserGetVariableValueVarCache": "MediaWiki\\Extension\\MyExtension\\Hooks::onParserGetVariableValueVarCache"
	}
}
Called from: File(s): parser/Parser.phpCategory:MediaWiki hooks included in Parser.php#ParserGetVariableValueVarCache
Interface: ParserGetVariableValueVarCacheHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ParserGetVariableValueVarCache extensions.

Details

  • $parser: Parser object
  • $varCache: variable cache (array)
Category:Hooks added in MediaWiki 1.6.0 Category:Hooks deprecated in MediaWiki 1.35.0 Category:Hooks removed in MediaWiki 1.39.0 Category:MediaWiki deprecated or obsolete features Category:MediaWiki hooks Category:MediaWiki hooks included in Parser.php Category:Removed hooks