MediaWiki REL1_37
MediaWiki\Hook\MarkPatrolledCompleteHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\MarkPatrolledCompleteHook:

Public Member Functions

 onMarkPatrolledComplete ( $rcid, $user, $wcOnlySysopsCanPatrol, $auto)
 This hook is called after an edit is marked patrolled.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file MarkPatrolledCompleteHook.php.

Member Function Documentation

◆ onMarkPatrolledComplete()

MediaWiki\Hook\MarkPatrolledCompleteHook::onMarkPatrolledComplete (   $rcid,
  $user,
  $wcOnlySysopsCanPatrol,
  $auto 
)

This hook is called after an edit is marked patrolled.

Since
1.35
Parameters
int$rcidID of the revision marked as patrolled
User$userUser who marked the edit patrolled
bool$wcOnlySysopsCanPatrolConfig setting indicating whether the user must be a sysop to patrol the edit
bool$autoTrue if the edit is being marked as patrolled automatically
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: