Debian Codegraph @

includes/Permissions/Hook/UserIsBlockedFromHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Permissions\Hook;
4
5 use MediaWiki\Title\Title;
6 use MediaWiki\User\User;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "UserIsBlockedFrom" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface UserIsBlockedFromHook {
16 /**
17 * Use this hook to check if a user is blocked from a specific page (for
18 * specific block exemptions if a user is already blocked).
19 *
20 * @since 1.35
21 *
22 * @param User $user User in question
23 * @param Title $title Title of the page in question
24 * @param bool &$blocked Out-param, whether or not the user is blocked from that page
25 * @param bool &$allowUsertalk If the user is blocked, whether or not the block allows users
26 * to edit their own user talk pages
27 * @return bool|void True or no return value to continue or false to abort
28 */
29 public function onUserIsBlockedFrom( $user, $title, &$blocked, &$allowUsertalk );
30 }