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

Public Member Functions

 onLinkBegin ( $skin, $target, &$html, &$customAttribs, &$query, &$options, &$ret)
 This hook is called when generating internal and interwiki links in Linker::link(), before processing starts.
 

Detailed Description

Deprecated:
since 1.28 Use HtmlPageLinkRendererBegin instead

Definition at line 12 of file LinkBeginHook.php.

Member Function Documentation

◆ onLinkBegin()

MediaWiki\Linker\Hook\LinkBeginHook::onLinkBegin (   $skin,
  $target,
$html,
$customAttribs,
$query,
$options,
$ret 
)

This hook is called when generating internal and interwiki links in Linker::link(), before processing starts.

See documentation for Linker::link() for details on the expected meanings of parameters.

Since
1.35
Parameters
DummyLinker$skinFormerly a Linker/Skin, now a DummyLinker for b/c
Title$targetTitle that the link is pointing to
string | null&$htmlContents that the <a> tag should have (raw HTML); null means "default"
string[]&$customAttribsHTML attributes that the <a> tag should have, in associative array form, with keys and values unescaped. Should be merged with default values, with a value of false meaning to suppress the attribute.
string[]&$queryQuery string to add to the generated URL (the bit after the "?"), in associative array form, with keys and values unescaped
string[]&$optionsArray of options, which can include 'known', 'broken', 'noclasses'
string&$retValue to return if your hook returns false
Returns
bool|void True or no return value to continue, or false to skip default processing and return $ret

Implemented in MediaWiki\HookContainer\HookRunner.


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