MediaWiki REL1_37
MediaWiki\User\Hook\AutopromoteConditionHook Interface Reference

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

Inheritance diagram for MediaWiki\User\Hook\AutopromoteConditionHook:

Public Member Functions

 onAutopromoteCondition ( $type, $args, $user, &$result)
 Use this hook to check autopromote condition for user.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file AutopromoteConditionHook.php.

Member Function Documentation

◆ onAutopromoteCondition()

MediaWiki\User\Hook\AutopromoteConditionHook::onAutopromoteCondition (   $type,
  $args,
  $user,
$result 
)

Use this hook to check autopromote condition for user.

Since
1.35
Parameters
string$typeCondition type
array$argsArguments
User$user
array&$resultResult of checking autopromote condition
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: