MediaWiki  master
GetUserBlockHook.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Block\Hook;
4 
6 use User;
7 
15 interface GetUserBlockHook {
29  public function onGetUserBlock( $user, $ip, &$block );
30 }
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:68
This is a hook handler interface, see docs/Hooks.md.
onGetUserBlock( $user, $ip, &$block)
Use this hook to modify the block found by the block manager.