MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onSpecialStatsAddExtra (&$extraStats, $context) | |
Use this hook to add extra statistics at the end of Special:Statistics. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "SpecialStatsAddExtra" to register handlers implementing this interface.
Definition at line 14 of file SpecialStatsAddExtraHook.php.
MediaWiki\Hook\SpecialStatsAddExtraHook::onSpecialStatsAddExtra | ( | & | $extraStats, |
$context | |||
) |
Use this hook to add extra statistics at the end of Special:Statistics.
array | &$extraStats | Array to save the new stats $extraStats['<name of statistic>'] => |
;
can be an array with the keys "name" and "number": "name" is the HTML to be displayed in the name column "number" is the number to be displayed. or,
can be the number to be displayed and <name> is the message key to use in the name column,
IContextSource | $context |
Implemented in MediaWiki\HookContainer\HookRunner.