Jump to content

Manual:Hooks/UndeletePageToolLinks

From mediawiki.org
UndeletePageToolLinks
Available from version 1.34.0 (Gerrit change 531764)
Add one or more links to edit page subtitle when a page has been previously deleted.
Define function:
public static function onUndeletePageToolLinks( IContextSource $context, MediaWiki\Linker\LinkRenderer $linkRenderer, array &$links ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"UndeletePageToolLinks": "MediaWiki\\Extension\\MyExtension\\Hooks::onUndeletePageToolLinks"
	}
}
Called from: File(s): skins/Skin.php
Function(s): getUndeleteLink
Interface: UndeletePageToolLinksHook.php

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


Details

[edit]
  • $context: IContextSource instance
  • $linkRenderer: MediaWiki\Linker\LinkRenderer instance
  • &$links: Array of HTML strings