MediaWiki REL1_39
MediaWiki\User\Hook\GetAutoPromoteGroupsHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "GetAutoPromoteGroups" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 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: