MediaWiki 1.39.10
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onGetLocalURL ( $title, &$url, $query) | |
Use this hook to modify local URLs as output into page links. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetLocalURL" to register handlers implementing this interface.
Definition at line 14 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.