MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onGetUserBlock ( $user, $ip, &$block) | |
Use this hook to modify the block found by the block manager. | |
Stable to implement.
Definition at line 12 of file GetUserBlockHook.php.
MediaWiki\Block\Hook\GetUserBlockHook::onGetUserBlock | ( | $user, | |
$ip, | |||
& | $block | ||
) |
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().
User | $user | User targeted by the block |
string | null | $ip | IP of the current request if $user is the current user and they're not exempted from IP blocks. Null otherwise. |
AbstractBlock | null | &$block | User's block, or null if none was found |
Implemented in MediaWiki\HookContainer\HookRunner.