MediaWiki REL1_35
|
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. | |
Definition at line 12 of file LinkEndHook.php.
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.
DummyLinker | $skin | Formerly a Linker/Skin, now a DummyLinker for b/c |
Title | $target | Title that the link is pointing to |
string[] | $options | Array of options, which always includes either 'known' or 'broken', and may include 'noclasses' |
string | &$html | Final (raw HTML) contents of the <a> tag, after processing |
string[] | &$attribs | Final HTML attributes of the <a> tag, after processing, in associative array form |
string | &$ret | Value to return if your hook returns false |
<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.