MediaWiki REL1_35
MediaWiki\Linker\Hook\LinkEndHook Interface Reference
Inheritance diagram for MediaWiki\Linker\Hook\LinkEndHook:

Public Member Functions

 onLinkEnd ( $skin, $target, $options, &$html, &$attribs, &$ret)
 This hook is called when generating internal and interwiki links in Linker::link(), just before the function returns a value.
 

Detailed Description

Deprecated:
since 1.28 Use HtmlPageLinkRendererEnd hook instead

Definition at line 12 of file LinkEndHook.php.

Member Function Documentation

◆ onLinkEnd()

MediaWiki\Linker\Hook\LinkEndHook::onLinkEnd (   $skin,
  $target,
  $options,
$html,
$attribs,
$ret 
)

This hook is called when generating internal and interwiki links in Linker::link(), just before the function returns a value.

Since
1.35
Parameters
DummyLinker$skinFormerly a Linker/Skin, now a DummyLinker for b/c
Title$targetTitle that the link is pointing to
string[]$optionsArray of options, which always includes either 'known' or 'broken', and may include 'noclasses'
string&$htmlFinal (raw HTML) contents of the <a> tag, after processing
string[]&$attribsFinal HTML attributes of the <a> tag, after processing, in associative array form
string&$retValue to return if your hook returns false
Returns
bool|void True or no return value to continue or false to abort. If you return true, an <a> element with HTML attributes $attribs and contents $html will be returned. If you return false, $ret will be returned.

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: