MediaWiki REL1_35
MediaWiki\Hook\ChangeUserGroupsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ChangeUserGroupsHook:

Public Member Functions

 onChangeUserGroups ( $performer, $user, &$add, &$remove)
 This hook is called before user groups are changed.
 

Detailed Description

Stable to implement.

Definition at line 11 of file ChangeUserGroupsHook.php.

Member Function Documentation

◆ onChangeUserGroups()

MediaWiki\Hook\ChangeUserGroupsHook::onChangeUserGroups (   $performer,
  $user,
$add,
$remove 
)

This hook is called before user groups are changed.

Since
1.35
Parameters
User$performerThe User who will perform the change
User$userThe User whose groups will be changed
array&$addThe groups that will be added
array&$removeThe groups that will be removed
Returns
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: