MediaWiki  master
MediaWiki\Hook\ContributionsToolLinksHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

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

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

Stable to implement

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