Manual:Hooks/SoftwareInfo

From Linux Web Expert

SoftwareInfo
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Called by Special:Version for returning information about the software.
<translate> Define function:</translate>
public static function onSoftwareInfo( &$software ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SoftwareInfo": "MediaWiki\\Extension\\MyExtension\\Hooks::onSoftwareInfo"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> specials/SpecialVersion.php
<translate> Interface:</translate> SoftwareInfoHook.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:SoftwareInfo extensions</tvar>.</translate>

Details

  • &$software: The array of software in format 'name' => 'version'. See SpecialVersion::softwareInformation()