< Manual:Hooks
| 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": "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.
Details
- &$extTypes: associative array of repo URLS to viewer URLs.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.