Manual:Hooks/APIQuerySiteInfoGeneralInfo
From Linux Web Expert
APIQuerySiteInfoGeneralInfo | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Used to add extra information to the SiteInfo general information output | |
<translate> Define function:</translate> | public static function onAPIQuerySiteInfoGeneralInfo( $module, &$result ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"APIQuerySiteInfoGeneralInfo": "MediaWiki\\Extension\\MyExtension\\Hooks::onAPIQuerySiteInfoGeneralInfo"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> api/ApiQuerySiteinfo.php |
<translate> Interface:</translate> | APIQuerySiteInfoGeneralInfoHook.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:APIQuerySiteInfoGeneralInfo extensions</tvar>.</translate>
Details
$module
: ApiQuerySiteInfo module.&$result
: Result array for extra information to be added to.