MediaWiki fundraising/REL1_35
MediaWiki\Hook\SpecialStatsAddExtraHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\SpecialStatsAddExtraHook:

Public Member Functions

 onSpecialStatsAddExtra (&$extraStats, $context)
 Use this hook to add extra statistics at the end of Special:Statistics.
 

Detailed Description

Stable to implement.

Definition at line 11 of file SpecialStatsAddExtraHook.php.

Member Function Documentation

◆ onSpecialStatsAddExtra()

MediaWiki\Hook\SpecialStatsAddExtraHook::onSpecialStatsAddExtra ( & $extraStats,
$context )

Use this hook to add extra statistics at the end of Special:Statistics.

Since
1.35
Parameters
array&$extraStatsArray 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,

Parameters
IContextSource$contextIContextSource object
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: