MediaWiki master
GetHumanTimestampHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
5use Language;
8
31 public function onGetHumanTimestamp( &$output, $timestamp, $relativeTo, $user,
32 $lang
33 );
34}
Base class for language-specific code.
Definition Language.php:65
internal since 1.36
Definition User.php:93
Library for creating and parsing MW-style timestamps.
This is a hook handler interface, see docs/Hooks.md.
onGetHumanTimestamp(&$output, $timestamp, $relativeTo, $user, $lang)
Use this hook to preemptively override the human-readable timestamp generated by Language::getHumanTi...