MediaWiki master
MediaWiki\Permissions\Hook\UserIsBlockedFromHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onUserIsBlockedFrom ( $user, $title, &$blocked, &$allowUsertalk)
 Use this hook to check if a user is blocked from a specific page (for specific block exemptions if a user is already blocked).
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "UserIsBlockedFrom" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file UserIsBlockedFromHook.php.

Member Function Documentation

◆ onUserIsBlockedFrom()

MediaWiki\Permissions\Hook\UserIsBlockedFromHook::onUserIsBlockedFrom ( $user,
$title,
& $blocked,
& $allowUsertalk )

Use this hook to check if a user is blocked from a specific page (for specific block exemptions if a user is already blocked).

Since
1.35
Parameters
User$userUser in question
Title$titleTitle of the page in question
bool&$blockedOut-param, whether or not the user is blocked from that page
bool&$allowUsertalkIf the user is blocked, whether or not the block allows users to edit their own user talk pages
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: