Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426666
InterwikiLoadPrefixHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
941 B
Referenced Files
None
Subscribers
None
InterwikiLoadPrefixHook.php
View Options
<?php
namespace
MediaWiki\Interwiki\Hook
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "InterwikiLoadPrefix" to register handlers implementing this interface.
*
* @deprecated since 1.36, does not support enumerating all valid prefixes; for testing
* purposes (re)set $wgInterwikiCache instead.
* @stable to implement
* @ingroup Hooks
*/
interface
InterwikiLoadPrefixHook
{
/**
* This hook is called when resolving whether a given prefix is an interwiki or not.
*
* @since 1.35
*
* @param string $prefix Interwiki prefix we are looking for
* @param array &$iwData Output array describing the interwiki with keys iw_url, iw_local,
* iw_trans and optionally iw_api and iw_wikiid
* @return bool|void True (or no return value) without providing an interwiki to continue
* interwiki search, or false to abort
*/
public
function
onInterwikiLoadPrefix
(
$prefix
,
&
$iwData
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 13:32 (1 d, 19 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7b/48/2a657c032dae272621865ce321d5
Default Alt Text
InterwikiLoadPrefixHook.php (941 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment