MediaWiki  master
MediaWiki\Hook\UnblockUserHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\UnblockUserHook:

Public Member Functions

 onUnblockUser ( $block, $user, &$reason)
 This hook is called before an IP address or user is unblocked. More...
 

Detailed Description

Stable to implement.

Definition at line 12 of file UnblockUserHook.php.

Member Function Documentation

◆ onUnblockUser()

MediaWiki\Hook\UnblockUserHook::onUnblockUser (   $block,
  $user,
$reason 
)

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

Since
1.35
Parameters
DatabaseBlock$blockThe Block object about to be saved
User$userThe user performing the unblock (not the one being unblocked)
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: