MediaWiki REL1_35
MediaWiki\User\Hook\GetAutoPromoteGroupsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\User\Hook\GetAutoPromoteGroupsHook:

Public Member Functions

 onGetAutoPromoteGroups ( $user, &$promote)
 This hook is called when determining which autopromote groups a user is entitled to be in.
 

Detailed Description

Stable to implement.

Definition at line 11 of file GetAutoPromoteGroupsHook.php.

Member Function Documentation

◆ onGetAutoPromoteGroups()

MediaWiki\User\Hook\GetAutoPromoteGroupsHook::onGetAutoPromoteGroups (   $user,
$promote 
)

This hook is called when determining which autopromote groups a user is entitled to be in.

Since
1.35
Parameters
User$userUser to promote
string[]&$promoteGroups that will be added
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: