MediaWiki REL1_37
MediaWiki\Hook\SpecialStatsAddExtraHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

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

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

Stability: stable
to implement

Definition at line 14 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$context
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: