MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onUserGroupsChanged ( $user, $added, $removed, $performer, $reason, $oldUGMs, $newUGMs) | |
This hook is called after user groups are changed. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "UserGroupsChanged" to register handlers implementing this interface.
Definition at line 15 of file UserGroupsChangedHook.php.
MediaWiki\User\Hook\UserGroupsChangedHook::onUserGroupsChanged | ( | $user, | |
$added, | |||
$removed, | |||
$performer, | |||
$reason, | |||
$oldUGMs, | |||
$newUGMs | |||
) |
This hook is called after user groups are changed.
User | $user | User whose groups changed |
string[] | $added | Groups added |
string[] | $removed | Groups removed |
User | false | $performer | User who performed the change, false if via autopromotion |
string | false | $reason | The reason, if any, given by the user performing the change, false if via autopromotion. |
UserGroupMembership[] | $oldUGMs | An associative array (group name => UserGroupMembership) of the user's group memberships before the change. |
UserGroupMembership[] | $newUGMs | An associative array (group name => UserGroupMembership) of the user's current group memberships. |
Implemented in MediaWiki\HookContainer\HookRunner.