MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onBlockIp ( $block, $user, &$reason) | |
This hook is called before an IP address or user is blocked. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "BlockIp" to register handlers implementing this interface.
Definition at line 15 of file BlockIpHook.php.
MediaWiki\Hook\BlockIpHook::onBlockIp | ( | $block, | |
$user, | |||
& | $reason ) |
This hook is called before an IP address or user is blocked.
DatabaseBlock | $block | the Block object about to be saved |
User | $user | the user doing the block (not the one being blocked) |
array | &$reason | if the hook is aborted, the error message to be returned in an array |
Implemented in MediaWiki\HookContainer\HookRunner.