MediaWiki  master
MediaWiki\Hook\BlockIpCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\BlockIpCompleteHook:

Public Member Functions

 onBlockIpComplete ( $block, $user, $priorBlock)
 This hook is called after an IP address or user is blocked. More...
 

Detailed Description

Stable to implement.

Definition at line 12 of file BlockIpCompleteHook.php.

Member Function Documentation

◆ onBlockIpComplete()

MediaWiki\Hook\BlockIpCompleteHook::onBlockIpComplete (   $block,
  $user,
  $priorBlock 
)

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

Since
1.35
Parameters
DatabaseBlock$blockthe block object that was saved
User$userthe user who did the block (not the one being blocked)
?DatabaseBlock$priorBlock the block object for the prior block, if there was one
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: