Manual:Hooks/APIQuerySiteInfoStatisticsInfo

From Linux Web Expert

APIQuerySiteInfoStatisticsInfo
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Used to add extra information to the SiteInfo statistics information output
<translate> Define function:</translate>
public static function onAPIQuerySiteInfoStatisticsInfo( &$result ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"APIQuerySiteInfoStatisticsInfo": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIQuerySiteInfoStatisticsInfo"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> api/ApiQuerySiteinfo.php
<translate> Interface:</translate> APIQuerySiteInfoStatisticsInfoHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:APIQuerySiteInfoStatisticsInfo extensions</tvar>.</translate>


Details

  • &$result: Result array for extra information to be added to