MediaWiki  master
MediaWiki\Hook\CategoryViewer__generateLinkHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\CategoryViewer__generateLinkHook:

Public Member Functions

 onCategoryViewer__generateLink ( $type, $title, $html, &$link)
 This hook is called before generating an output link allow extensions opportunity to generate a more specific or relevant link. More...
 

Detailed Description

Stable to implement.

Definition at line 12 of file CategoryViewer__generateLinkHook.php.

Member Function Documentation

◆ onCategoryViewer__generateLink()

MediaWiki\Hook\CategoryViewer__generateLinkHook::onCategoryViewer__generateLink (   $type,
  $title,
  $html,
$link 
)

This hook is called before generating an output link allow extensions opportunity to generate a more specific or relevant link.

Since
1.35
Parameters
string$typeCategory type, either 'page', 'img', or 'subcat'
Title$titleCategorized page
string$htmlRequested HTML content of anchor
string&$linkReturned value. When set to a non-null value by a hook subscriber, this value will be used as the anchor instead of Linker::link.
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: