Manual:Hooks/GitViewers

GitViewers
Available from version 1.20.0
Called when generating the list of git viewers for Special:Version, use this to change the list.
Define function:
public static function onGitViewers( &$extTypes ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"GitViewers": "MediaWiki\\Extension\\MyExtension\\Hooks::onGitViewers"
	}
}
Called from: File(s): GitInfo.php
Interface: GitViewersHook.php

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


Details

edit
  • &$extTypes: associative array of repo URLS to viewer URLs.