MediaWiki REL1_35
MediaWiki\Hook\BlockIpHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\BlockIpHook:

Public Member Functions

 onBlockIp ( $block, $user, &$reason)
 This hook is called before an IP address or user is blocked.
 

Detailed Description

Stable to implement.

Definition at line 12 of file BlockIpHook.php.

Member Function Documentation

◆ onBlockIp()

MediaWiki\Hook\BlockIpHook::onBlockIp (   $block,
  $user,
$reason 
)

This hook is called before an IP address or user is blocked.

Since
1.35
Parameters
DatabaseBlock$blockthe Block object about to be saved
User$userthe user doing the block (not the one being blocked)
array&$reasonif the hook is aborted, the error message to be returned in an array
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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