MediaWiki
master
LinkerMakeExternalLinkWithContextHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Linker\Hook
;
4
5
use Wikimedia\Parsoid\Core\LinkTarget;
6
15
interface
LinkerMakeExternalLinkWithContextHook
{
37
public
function
onLinkerMakeExternalLinkWithContext
(
38
?
string
&
$url
,
string
&$text, array &$attribs,
string
$linkType,
39
LinkTarget
$contextTitle
40
);
41
}
MediaWiki\Linker\Hook\LinkerMakeExternalLinkWithContextHook
This is a hook handler interface, see docs/Hooks.md.
Definition
LinkerMakeExternalLinkWithContextHook.php:15
MediaWiki\Linker\Hook\LinkerMakeExternalLinkWithContextHook\onLinkerMakeExternalLinkWithContext
onLinkerMakeExternalLinkWithContext(?string &$url, string &$text, array &$attribs, string $linkType, LinkTarget $contextTitle)
This hook is called at the end of Linker::makeExternalLink() just before the return.
MediaWiki\Linker\LinkTarget
Represents the target of a wiki link.
Definition
LinkTarget.php:19
MediaWiki\Linker\Hook
Definition
HtmlPageLinkRendererBeginHook.php:3
$url
$url
Definition
opensearch_desc.php:23
includes
Linker
Hook
LinkerMakeExternalLinkWithContextHook.php
Generated on Sun Aug 9 2026 18:26:11 for MediaWiki by
1.10.0