MediaWiki REL1_35
MediaWiki\Hook\GetLinkColoursHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\GetLinkColoursHook:

Public Member Functions

 onGetLinkColours ( $linkcolour_ids, &$colours, $title)
 Use this hook to modify the CSS class of an array of page links.
 

Detailed Description

Stable to implement.

Definition at line 11 of file GetLinkColoursHook.php.

Member Function Documentation

◆ onGetLinkColours()

MediaWiki\Hook\GetLinkColoursHook::onGetLinkColours (   $linkcolour_ids,
$colours,
  $title 
)

Use this hook to modify the CSS class of an array of page links.

Since
1.35
Parameters
string[]$linkcolour_idsArray of prefixed DB keys of the pages linked to, indexed by page_id
string[]&$colours(Output) Array of CSS classes, indexed by prefixed DB keys
Title$titleTitle of the page being parsed, on which the links will be shown
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: