MediaWiki REL1_39
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 $title, array &$tools, SpecialPage $specialPage)
 Use this hook to change the tool links above Special:Contributions.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file ContributionsToolLinksHook.php.

Member Function Documentation

◆ onContributionsToolLinks()

MediaWiki\Hook\ContributionsToolLinksHook::onContributionsToolLinks ( $id,
Title $title,
array & $tools,
SpecialPage $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: