MediaWiki master
MediaWiki\Hook\MarkPatrolledHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

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$wcOnlySysopsCanPatrolAlways false
bool$autoAlways false
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: