MediaWiki REL1_35
MediaWiki\Interwiki\Hook\InterwikiLoadPrefixHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Interwiki\Hook\InterwikiLoadPrefixHook:

Public Member Functions

 onInterwikiLoadPrefix ( $prefix, &$iwData)
 This hook is called when resolving whether a given prefix is an interwiki or not.
 

Detailed Description

Stable to implement.

Definition at line 9 of file InterwikiLoadPrefixHook.php.

Member Function Documentation

◆ onInterwikiLoadPrefix()

MediaWiki\Interwiki\Hook\InterwikiLoadPrefixHook::onInterwikiLoadPrefix (   $prefix,
$iwData 
)

This hook is called when resolving whether a given prefix is an interwiki or not.

Since
1.35
Parameters
string$prefixInterwiki prefix we are looking for
array&$iwDataOutput array describing the interwiki with keys iw_url, iw_local, iw_trans and optionally iw_api and iw_wikiid
Returns
bool|void True (or no return value) without providing an interwiki to continue interwiki search, or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: