MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onParserGetVariableValueSwitch ( $parser, &$variableCache, $magicWordId, &$ret, $frame) | |
This hook is called when the parser needs the value of a custom magic word. | |
Stable to implement.
Definition at line 12 of file ParserGetVariableValueSwitchHook.php.
MediaWiki\Hook\ParserGetVariableValueSwitchHook::onParserGetVariableValueSwitch | ( | $parser, | |
& | $variableCache, | ||
$magicWordId, | |||
& | $ret, | ||
$frame | |||
) |
This hook is called when the parser needs the value of a custom magic word.
Parser | $parser | |
array | &$variableCache | Array to cache the value; when you return $variableCache[$magicWordId] should be the same as $ret |
string | $magicWordId | Index of the magic word (hook should not mutate it!) |
string | &$ret | Value of the magic word (the hook should set it) |
PPFrame | $frame | PPFrame object to use for expanding any template variables |
Implemented in MediaWiki\HookContainer\HookRunner.