MediaWiki REL1_35
MediaWiki\User\Hook\UserAddGroupHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\UserAddGroupHook:

Public Member Functions

 onUserAddGroup ( $user, &$group, &$expiry)
 This hook is alled when adding a group or changing a group's expiry.
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserAddGroupHook.php.

Member Function Documentation

◆ onUserAddGroup()

MediaWiki\User\Hook\UserAddGroupHook::onUserAddGroup (   $user,
$group,
$expiry 
)

This hook is alled when adding a group or changing a group's expiry.

Since
1.35
Parameters
User$userThe user that is to have a group added
string&$groupThe group to add; can be modified
string | null&$expiryThe expiry time in TS_MW format, or null if the group is not to expire; can be modified
Returns
bool|void True or no return value to continue or false to abort (not add the group)

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: