MediaWiki master
MediaWiki\Hook\ParserGetVariableValueTsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onParserGetVariableValueTs ( $parser, &$time)
 Use this hook to change the value of the time for time-related magic words, ie {{CURRENTMONTH}}, {{LOCALMONTH}}, etc.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ParserGetVariableValueTs" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file ParserGetVariableValueTsHook.php.

Member Function Documentation

◆ onParserGetVariableValueTs()

MediaWiki\Hook\ParserGetVariableValueTsHook::onParserGetVariableValueTs ( $parser,
& $time )

Use this hook to change the value of the time for time-related magic words, ie {{CURRENTMONTH}}, {{LOCALMONTH}}, etc.

Since
1.35
Parameters
Parser$parser
string&$timeActual time (timestamp) in TS_UNIX format
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: