MediaWiki master
MediaWiki\Hook\LinkerMakeExternalLinkHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onLinkerMakeExternalLink (&$url, &$text, &$link, &$attribs, $linkType)
 This hook is called at the end of Linker::makeExternalLink() just before the return.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "LinkerMakeExternalLink" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 12 of file LinkerMakeExternalLinkHook.php.

Member Function Documentation

◆ onLinkerMakeExternalLink()

MediaWiki\Hook\LinkerMakeExternalLinkHook::onLinkerMakeExternalLink ( & $url,
& $text,
& $link,
& $attribs,
$linkType )

This hook is called at the end of Linker::makeExternalLink() just before the return.

Since
1.35
Parameters
string&$urlLink URL
string&$textLink text
string&$linkNew link HTML (if returning false)
string[]&$attribsAttributes to be applied
string$linkTypeExternal link type
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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