MediaWiki REL1_37
MediaWiki\Hook\PersonalUrlsHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\PersonalUrlsHook:

Public Member Functions

 onPersonalUrls (&$personal_urls, &$title, $skin)
 Use this hook to alter the user-specific navigation links (e.g.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file PersonalUrlsHook.php.

Member Function Documentation

◆ onPersonalUrls()

MediaWiki\Hook\PersonalUrlsHook::onPersonalUrls ( $personal_urls,
$title,
  $skin 
)

Use this hook to alter the user-specific navigation links (e.g.

"my page, my talk page, my contributions" etc).

Since
1.35
Parameters
array&$personal_urlsArray of link specifiers (see SkinTemplate.php)
Title&$titleCurrent page
SkinTemplate$skinSkinTemplate object providing context (e.g. to check if the user is logged in, etc.)
Returns
void This hook must not abort, it must return no value

Implemented in MediaWiki\HookContainer\HookRunner.


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