Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1427573
UserIsBlockedFromHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
977 B
Referenced Files
None
Subscribers
None
UserIsBlockedFromHook.php
View Options
<?php
namespace
MediaWiki\Permissions\Hook
;
use
MediaWiki\Title\Title
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserIsBlockedFrom" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UserIsBlockedFromHook
{
/**
* 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
*
* @param User $user User in question
* @param Title $title Title of the page in question
* @param bool &$blocked Out-param, whether or not the user is blocked from that page
* @param bool &$allowUsertalk If the user is blocked, whether or not the block allows users
* to edit their own user talk pages
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onUserIsBlockedFrom
(
$user
,
$title
,
&
$blocked
,
&
$allowUsertalk
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 14:48 (1 d, 2 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
eb/d9/4c10ae29b91d6ae98464a3512bb2
Default Alt Text
UserIsBlockedFromHook.php (977 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment