MediaWiki  master
MediaWiki\Permissions\Hook\UserGetRightsRemoveHook Interface Reference

This is a hook handler interface, see docs/ More...

Inheritance diagram for MediaWiki\Permissions\Hook\UserGetRightsRemoveHook:

Public Member Functions

 onUserGetRightsRemove ( $user, &$rights)
 This hook is called in User::getRights(). More...

Detailed Description

This is a hook handler interface, see docs/

Use the hook name "UserGetRightsRemove" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file UserGetRightsRemoveHook.php.

Member Function Documentation

◆ onUserGetRightsRemove()

MediaWiki\Permissions\Hook\UserGetRightsRemoveHook::onUserGetRightsRemove (   $user,

This hook is called in User::getRights().

This hook overrides the UserGetRights hook. It can be used to remove rights from a user and ensure that they will not be reinserted by the other hook callbacks. This hook should not be used to add any rights; use UserGetRights instead.

User$userUser to get rights for
string[]&$rightsCurrent rights
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: