MediaWiki REL1_35
MediaWiki\Hook\MarkPatrolledHook Interface Reference

Stable to implement. 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

Stable to implement.

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