MediaWiki master
BlockIpHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Specials\Hook;
4
5use MediaWiki\Block\DatabaseBlock;
6use MediaWiki\User\User;
7
15interface BlockIpHook {
26 public function onBlockIp( $block, $user, &$reason );
27}
28
30class_alias( BlockIpHook::class, 'MediaWiki\\Hook\\BlockIpHook' );
This is a hook handler interface, see docs/Hooks.md.
onBlockIp( $block, $user, &$reason)
This hook is called before an IP address or user is blocked.