3 namespace MediaWiki\Hook
;
5 use MediaWiki\Context\IContextSource
;
6 use MediaWiki\Linker\LinkRenderer
;
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "UndeletePageToolLinks" to register handlers implementing this interface.
12 * @stable to implement
15 interface UndeletePageToolLinksHook
{
17 * Use this hook to add one or more links to edit page subtitle when a page
18 * has been previously deleted.
22 * @param IContextSource $context
23 * @param LinkRenderer $linkRenderer
24 * @param string[] &$links Array of HTML strings
25 * @return bool|void True or no return value to continue or false to abort
27 public function onUndeletePageToolLinks( IContextSource
$context, LinkRenderer
$linkRenderer, array &$links );