MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onGetHumanTimestamp (&$output, $timestamp, $relativeTo, $user, $lang) | |
Use this hook to preemptively override the human-readable timestamp generated by MWTimestamp::getHumanTimestamp(). | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetHumanTimestamp" to register handlers implementing this interface.
Definition at line 16 of file GetHumanTimestampHook.php.
MediaWiki\Hook\GetHumanTimestampHook::onGetHumanTimestamp | ( | & | $output, |
$timestamp, | |||
$relativeTo, | |||
$user, | |||
$lang | |||
) |
Use this hook to preemptively override the human-readable timestamp generated by MWTimestamp::getHumanTimestamp().
string | &$output | Output timestamp |
MWTimestamp | $timestamp | Current (user-adjusted) timestamp |
MWTimestamp | $relativeTo | Relative (user-adjusted) timestamp |
User | $user | User whose preferences are being used to make timestamp |
Language | $lang | Language that will be used to render the timestamp |
Implemented in MediaWiki\HookContainer\HookRunner.