Manual:Hooks/MarkPatrolled
From Linux Web Expert
MarkPatrolled | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Called before an edit is marked patrolled | |
<translate> Define function:</translate> | public static function onMarkPatrolled( $rcid, User $user, $wcOnlySysopsCanPatrol, $auto, array &$tags ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"MarkPatrolled": "MediaWiki\\Extension\\MyExtension\\Hooks::onMarkPatrolled"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> changes/RecentChange.php <translate> Function(s):</translate> doMarkPatrolled |
<translate> Interface:</translate> | MarkPatrolledHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:MarkPatrolled extensions</tvar>.</translate>
Details
- $rcid: ID of the revision to be marked patrolled
- $user: the user (object) marking the revision as patrolled
- $wcOnlySysopsCanPatrol: always
false
since git #fcd1cdeb93 / <translate> task <tvar name=1>T7282</tvar></translate> - $auto: whether the edit is being marked as patrolled automatically (since gerrit:243821)
- &$tags: the tags that will be added to the patrol log entry (since gerrit:500176)