< Manual:Hooks
| SpecialVersionVersionUrl | |
|---|---|
| Available from version 1.21.0 (Gerrit change 35917) Called when building the URL for Special:Version. | |
| Define function: | public static function onSpecialVersionVersionUrl( string $version, string &$versionUrl ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"SpecialVersionVersionUrl": "MyExtensionHooks::onSpecialVersionVersionUrl"
}
}
|
| Called from: | File(s): specials/SpecialVersion.php Function(s): getwgVersionLinked |
| Interface: | SpecialVersionVersionUrlHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialVersionVersionUrl extensions.
Details
$version: Current$wgVersionfor you to use&$versionUrl: Raw url to link to (eg: release notes)
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.