< Manual:Hooks
| HistoryPageToolLinks | |
|---|---|
| Available from version 1.32.0 (Gerrit change 120811) Allows adding links to the revision history page subtitle. | |
| Define function: | public static function onHistoryPageToolLinks( IContextSource $context, \MediaWiki\Linker\LinkRenderer $linkRenderer, array &$links ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"HistoryPageToolLinks": "MyExtensionHooks::onHistoryPageToolLinks"
}
}
|
| Called from: | File(s): actions/HistoryAction.php Function(s): getDescription |
| Interface: | HistoryPageToolLinksHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:HistoryPageToolLinks extensions.
Details
$context: IContextSource object$linkRenderer: MediaWiki\Linker\LinkRenderer object&$links: Array of links
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.