MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onHtmlPageLinkRendererEnd ( $linkRenderer, $target, $isKnown, &$text, &$attribs, &$ret) | |
This hook is called when generating internal and interwiki links in LinkRenderer, just before the function returns a value. | |
Stable to implement.
Definition at line 13 of file HtmlPageLinkRendererEndHook.php.
MediaWiki\Linker\Hook\HtmlPageLinkRendererEndHook::onHtmlPageLinkRendererEnd | ( | $linkRenderer, | |
$target, | |||
$isKnown, | |||
& | $text, | ||
& | $attribs, | ||
& | $ret | ||
) |
This hook is called when generating internal and interwiki links in LinkRenderer, just before the function returns a value.
LinkRenderer | $linkRenderer | |
LinkTarget | $target | LinkTarget object that the link is pointing to |
bool | $isKnown | Whether the page is known or not |
string | HtmlArmor | &$text | Contents that the <a> tag should have; either a plain, unescaped string or an HtmlArmor object |
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.