MediaWiki  master
MediaWiki\Interwiki\Hook\InterwikiLoadPrefixHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "InterwikiLoadPrefix" to register handlers implementing this interface.

Stable to implement

Definition at line 12 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: