1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<?php
namespace MediaWiki\Permissions\Hook;
use Title;
use User;
/**
* @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 );
}
|