Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F8100672
CategoryViewer__generateLinkHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
CategoryViewer__generateLinkHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
// phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "CategoryViewer::generateLink" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
CategoryViewer__generateLinkHook
{
/**
* This hook is called before generating an output link allow
* extensions opportunity to generate a more specific or relevant link.
*
* @since 1.35
*
* @param string $type Category type, either 'page', 'file', or 'subcat'
* @param Title $title Categorized page
* @param string $html Requested HTML content of anchor
* @param string &$link Returned value. When set to a non-null value by a hook subscriber,
* this value will be used as the anchor instead of LinkRenderer::makeLink.
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onCategoryViewer__generateLink
(
$type
,
$title
,
$html
,
&
$link
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 8, 01:59 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
50/c9/f31e891437ce7a70aa2e534730fb
Default Alt Text
CategoryViewer__generateLinkHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment