MediaWiki REL1_35
MediaWiki\Permissions\Hook\UserIsBlockedFromHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Permissions\Hook\UserIsBlockedFromHook:

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

Stable to implement.

Definition at line 12 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: