MediaWiki  master
MediaWiki\User\Hook\UserEffectiveGroupsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\UserEffectiveGroupsHook:

Public Member Functions

 onUserEffectiveGroups ( $user, &$groups)
 This hook is called in User::getEffectiveGroups(). More...
 

Detailed Description

Stable to implement.

Definition at line 11 of file UserEffectiveGroupsHook.php.

Member Function Documentation

◆ onUserEffectiveGroups()

MediaWiki\User\Hook\UserEffectiveGroupsHook::onUserEffectiveGroups (   $user,
$groups 
)

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

Since
1.35
Parameters
User$userUser to get groups for
string[]&$groupsCurrent effective groups
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: