Manual:Hooks/ParserGetVariableValueVarCache

From MediaWiki.org

Jump to: navigation, search
ParserGetVariableValueVarCache
Available from version 1.6.0
use this to change the value of the variable cache or return false to not use it

*Define function:
function fnMyHook( $parser, $varCache ) { ... }

*Attach hook:
$wgHooks['ParserGetVariableValueVarCache'][] = 'fnMyHook';
Called from: Parser.php

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


[edit] Details

  • $parser: Parser object
  • $varCache: varaiable cache (array)