Jump to content

Manual:Hooks/SoftwareInfo

From mediawiki.org
SoftwareInfo
Available from version 1.15.0
Called by Special:Version for returning information about the software.
Define function:
public static function onSoftwareInfo( &$software ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SoftwareInfo": "MediaWiki\\Extension\\MyExtension\\Hooks::onSoftwareInfo"
	}
}
Called from: File(s): specials/SpecialVersion.php
Interface: SoftwareInfoHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SoftwareInfo extensions.

Details

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