< Manual:Hooks
| 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": "MyExtensionHooks::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
$context: IContextSource instance$linkRenderer: MediaWiki\Linker\LinkRenderer instance&$links: Array of HTML strings
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.