Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\GlobalBlocking\Hook; |
4 | |
5 | /** |
6 | * This is a hook handler interface, see docs/Hooks.md in core. |
7 | * Use the hook name "GlobalBlockingBlockedIpMsg" to register handlers implementing this interface. |
8 | * |
9 | * @ingroup Hooks |
10 | * @deprecated Since 1.42 - Override the message key globalblocking-ipblocked on the wiki or using the |
11 | * MessageCacheFetchOverrides hook. |
12 | */ |
13 | interface GlobalBlockingBlockedIpMsgHook { |
14 | |
15 | /** |
16 | * Allow extensions to customise the message shown when a user is globally IP blocked. |
17 | * |
18 | * @param string &$errorMsg Translation key of the message shown to the user. |
19 | * |
20 | * @return bool|void True or no return value to continue or false to abort running remaining hook handlers. |
21 | * @deprecated Since 1.42 - Override the message key globalblocking-ipblocked on the wiki or using the |
22 | * MessageCacheFetchOverrides hook. |
23 | */ |
24 | public function onGlobalBlockingBlockedIpMsg( string &$errorMsg ); |
25 | |
26 | } |