Page MenuHomeWickedGov Phorge

SpecialStatsAddExtraHook.php
No OneTemporary

Size
1001 B
Referenced Files
None
Subscribers
None

SpecialStatsAddExtraHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Context\IContextSource;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "SpecialStatsAddExtra" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface SpecialStatsAddExtraHook {
/**
* Use this hook to add extra statistics at the end of Special:Statistics.
*
* @since 1.35
*
* @param array &$extraStats Array to save the new stats
* $extraStats['<name of statistic>'] => <value>;
* <value> 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, <value> can be the number to be displayed and <name> is the
* message key to use in the name column,
* @param IContextSource $context
* @return bool|void True or no return value to continue or false to abort
*/
public function onSpecialStatsAddExtra( &$extraStats, $context );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 16 2026, 17:02 (11 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
dc/e8/0689b7069afe7d59f25e4d7da2a7
Default Alt Text
SpecialStatsAddExtraHook.php (1001 B)

Event Timeline