MediaWiki REL1_35
MediaWiki\Hook\LinkerMakeExternalLinkHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\LinkerMakeExternalLinkHook:

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

Stable to implement.

Definition at line 9 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: