Manual:Hooks/ParserGetVariableValueVarCache
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.35.0. |
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: | public static function onParserGetVariableValueVarCache( Parser $parser, array $varCache ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"ParserGetVariableValueVarCache": "MyExtensionHooks::onParserGetVariableValueVarCache"
}
}
|
Called from: | File(s): parser/Parser.php |
Interface: | ParserGetVariableValueVarCacheHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ParserGetVariableValueVarCache extensions.
DetailsEdit
- $parser: Parser object
- $varCache: variable cache (array)