MediaWiki REL1_37
MediaWiki\Hook\MarkPatrolledHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\MarkPatrolledHook:

Public Member Functions

 onMarkPatrolled ( $rcid, $user, $wcOnlySysopsCanPatrol, $auto, &$tags)
 This hook is called before an edit is marked patrolled.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file MarkPatrolledHook.php.

Member Function Documentation

◆ onMarkPatrolled()

MediaWiki\Hook\MarkPatrolledHook::onMarkPatrolled (   $rcid,
  $user,
  $wcOnlySysopsCanPatrol,
  $auto,
$tags 
)

This hook is called before an edit is marked patrolled.

Since
1.35
Parameters
int$rcidID of the revision to be marked patrolled
User$userUser marking the revision as patrolled
bool$wcOnlySysopsCanPatrolConfig setting indicating whether the user needs to be a sysop in order to mark an edit patrolled
bool$autoTrue if the edit is being marked as patrolled automatically
string[]&$tagsTags to be applied to the patrol log entry
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: