Page MenuHomeWickedGov Phorge

BlockIpCompleteHook.php
No OneTemporary

Size
801 B
Referenced Files
None
Subscribers
None

BlockIpCompleteHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Block\DatabaseBlock;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "BlockIpComplete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface BlockIpCompleteHook {
/**
* This hook is called after an IP address or user is blocked.
*
* @since 1.35
*
* @param DatabaseBlock $block the block object that was saved
* @param User $user the user who did the block (not the one being blocked)
* @param ?DatabaseBlock $priorBlock the block object for the prior block, if there was one
* @return bool|void True or no return value to continue or false to abort
*/
public function onBlockIpComplete( $block, $user, $priorBlock );
}

File Metadata

Mime Type
text/x-php
Expires
Aug 19 2026, 20:12 (7 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
19/a6/659d4debac8f2ae88fa9d13f0d5f
Default Alt Text
BlockIpCompleteHook.php (801 B)

Event Timeline