wiki.techinc.nl/includes/parser/Hook/GetLinkColoursHook.php
Tim Starling 0b7295a5cd Hook interface doc comment followup
Mostly just narrower array types. A handful of other errors fixed.

Change-Id: Ied79d9e389867911bf83696dbb47f43305f8be7b
2020-04-21 09:12:23 +10:00

24 lines
676 B
PHP

<?php
namespace MediaWiki\Hook;
use Title;
/**
* @stable for implementation
* @ingroup Hooks
*/
interface GetLinkColoursHook {
/**
* Use this hook to modify the CSS class of an array of page links.
*
* @since 1.35
*
* @param string[] $linkcolour_ids Array of prefixed DB keys of the pages linked to,
* indexed by page_id
* @param string[] &$colours (Output) Array of CSS classes, indexed by prefixed DB keys
* @param Title $title Title of the page being parsed, on which the links will be shown
* @return bool|void True or no return value to continue or false to abort
*/
public function onGetLinkColours( $linkcolour_ids, &$colours, $title );
}