Page MenuHomeWickedGov Phorge

GetLocalURLHook.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

GetLocalURLHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Title\Title;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "GetLocalURL" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface GetLocalURLHook {
/**
* 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.
*
* @since 1.35
*
* @param Title $title Title object of page
* @param string &$url String value as output (out parameter, can modify)
* @param string $query Query options as string passed to Title::getLocalURL()
* @return bool|void True or no return value to continue or false to abort
*/
public function onGetLocalURL( $title, &$url, $query );
}

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 23:59 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
42/c8/fe53b5c1b5de886bd7cf939ad684
Default Alt Text
GetLocalURLHook.php (1 KB)

Event Timeline