MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onGetLinkColours ( $linkcolour_ids, &$colours, $title) | |
Use this hook to modify the CSS class of an array of page links. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetLinkColours" to register handlers implementing this interface.
Definition at line 14 of file GetLinkColoursHook.php.
MediaWiki\Hook\GetLinkColoursHook::onGetLinkColours | ( | $linkcolour_ids, | |
& | $colours, | ||
$title | |||
) |
Use this hook to modify the CSS class of an array of page links.
string[] | $linkcolour_ids | Array 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 | $title | Title of the page being parsed, on which the links will be shown |
Implemented in MediaWiki\HookContainer\HookRunner, and MediaWiki\Api\ApiHookRunner.