MediaWiki master
|
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). | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "UserIsBlockedFrom" to register handlers implementing this interface.
Definition at line 15 of file UserIsBlockedFromHook.php.
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).
User | $user | User in question |
Title | $title | Title of the page in question |
bool | &$blocked | Out-param, whether or not the user is blocked from that page |
bool | &$allowUsertalk | If the user is blocked, whether or not the block allows users to edit their own user talk pages |
Implemented in MediaWiki\HookContainer\HookRunner.