MediaWiki master
MediaWiki\ChangeTags\Hook\ChangeTagsAfterUpdateTagsHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onChangeTagsAfterUpdateTags ( $addedTags, $removedTags, $prevTags, $rc_id, $rev_id, $log_id, $params, $rc, $user)
 This hook is called after tags have been updated with the ChangeTags::updateTags function.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 15 of file ChangeTagsAfterUpdateTagsHook.php.

Member Function Documentation

◆ onChangeTagsAfterUpdateTags()

MediaWiki\ChangeTags\Hook\ChangeTagsAfterUpdateTagsHook::onChangeTagsAfterUpdateTags ( $addedTags,
$removedTags,
$prevTags,
$rc_id,
$rev_id,
$log_id,
$params,
$rc,
$user )

This hook is called after tags have been updated with the ChangeTags::updateTags function.

Since
1.35
Parameters
string[]$addedTagsTags effectively added in the update
string[]$removedTagsTags effectively removed in the update
string[]$prevTagsTags that were present prior to the update
int$rc_idRecentchanges table id
int$rev_idRevision table id
int$log_idLogging table id
string | null$paramsTag params
RecentChange | null$rcRecentChange being tagged when the tagging accompanies the action, or null
User | null$userUser who performed the tagging when the tagging is subsequent to the action, or null
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: