MediaWiki  master
MediaWiki\Hook\ContributionsToolLinksHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ContributionsToolLinksHook:

Public Member Functions

 onContributionsToolLinks ( $id, $title, &$tools, $specialPage)
 Use this hook to change the tool links above Special:Contributions. More...
 

Detailed Description

Stable to implement.

Definition at line 12 of file ContributionsToolLinksHook.php.

Member Function Documentation

◆ onContributionsToolLinks()

MediaWiki\Hook\ContributionsToolLinksHook::onContributionsToolLinks (   $id,
  $title,
$tools,
  $specialPage 
)

Use this hook to change the tool links above Special:Contributions.

Since
1.35
Parameters
int$idUser identifier
Title$titleUser page title
string[]&$toolsArray of tool links
SpecialPage$specialPageSpecialPage instance for context and services. Can be either SpecialContributions or DeletedContributionsPage. Extensions should type hint against a generic SpecialPage though.
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: