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": "MyExtensionHooks::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.


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