MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onGetLocalURL ( $title, &$url, $query) | |
Use this hook to modify local URLs as output into page links. | |
Stable to implement.
Definition at line 11 of file GetLocalURLHook.php.
MediaWiki\Hook\GetLocalURLHook::onGetLocalURL | ( | $title, | |
& | $url, | ||
$query | |||
) |
Use this hook to modify local URLs as output into page links.
Note that if you are working with internal urls (non-interwiki) then it may be preferable to work with the GetLocalURL::Internal or GetLocalURL::Article hooks as GetLocalURL can be buggy for internal URLs on render if you do not re-implement the horrible hack that Title::getLocalURL uses in your own extension.
Title | $title | Title object of page |
string | &$url | String value as output (out parameter, can modify) |
string | $query | Query options as string passed to Title::getLocalURL() |
Implemented in MediaWiki\HookContainer\HookRunner.