MediaWiki REL1_35
MediaWiki\Hook\UserToolLinksEditHook Interface Reference

Stable to implement. 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

Stable to implement.

Definition at line 9 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: