MediaWiki master
MediaWiki\Block\Hook\AbortAutoblockHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onAbortAutoblock ( $autoblockip, $block)
 Use this hook to cancel an autoblock.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "AbortAutoblock" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file AbortAutoblockHook.php.

Member Function Documentation

◆ onAbortAutoblock()

MediaWiki\Block\Hook\AbortAutoblockHook::onAbortAutoblock ( $autoblockip,
$block )

Use this hook to cancel an autoblock.

Since
1.35
Parameters
string$autoblockipIP going to be autoblocked
DatabaseBlock$blockBlock from which the autoblock is coming
Returns
bool|void True or no return value to continue, or false to cancel an autoblock

Implemented in MediaWiki\HookContainer\HookRunner.


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