MediaWiki REL1_39
MediaWiki\Hook\UserToolLinksEditHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Hook\UserToolLinksEditHook:

Public Member Functions

 onUserToolLinksEdit ( $userId, $userText, &$items)
 This hook is called when generating a list of user tool links, e.g.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserToolLinksEdit" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file UserToolLinksEditHook.php.

Member Function Documentation

◆ onUserToolLinksEdit()

MediaWiki\Hook\UserToolLinksEditHook::onUserToolLinksEdit ( $userId,
$userText,
& $items )

This hook is called when generating a list of user tool links, e.g.

"Foobar (Talk | Contribs | Block)".

Since
1.35
Parameters
int$userIdUser ID of the current user
string$userTextUsername of the current user
string[]&$itemsArray of user tool links as HTML fragments
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: