Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429574
GetUserBlockHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
989 B
Referenced Files
None
Subscribers
None
GetUserBlockHook.php
View Options
<?php
namespace
MediaWiki\Block\Hook
;
use
MediaWiki\Block\AbstractBlock
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "GetUserBlock" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
GetUserBlockHook
{
/**
* Use this hook to modify the block found by the block manager. This may be a
* single block or a composite block made from multiple blocks; the original
* blocks can be seen using CompositeBlock::getOriginalBlocks().
*
* @since 1.35
*
* @param User $user User targeted by the block
* @param string|null $ip IP of the current request if $user is the current user
* and they're not exempted from IP blocks. Null otherwise.
* @param AbstractBlock|null &$block User's block, or null if none was found
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onGetUserBlock
(
$user
,
$ip
,
&
$block
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 17:46 (9 h, 12 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
db/09/d32a28938d0ad35f9f5a1fe55b04
Default Alt Text
GetUserBlockHook.php (989 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment