Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3namespace MediaWiki\ChangeTags\Hook;
4
5use MediaWiki\User\User;
6use RecentChange;
7
8/**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ChangeTagsAfterUpdateTags" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15interface ChangeTagsAfterUpdateTagsHook {
16    /**
17     * This hook is called after tags have been updated with the ChangeTags::updateTags function.
18     *
19     * @since 1.35
20     *
21     * @param string[] $addedTags Tags effectively added in the update
22     * @param string[] $removedTags Tags effectively removed in the update
23     * @param string[] $prevTags Tags that were present prior to the update
24     * @param int $rc_id Recentchanges table id
25     * @param int $rev_id Revision table id
26     * @param int $log_id Logging table id
27     * @param string|null $params Tag params
28     * @param RecentChange|null $rc RecentChange being tagged when the tagging accompanies the
29     *   action, or null
30     * @param User|null $user User who performed the tagging when the tagging is subsequent to the
31     *   action, or null
32     * @return bool|void True or no return value to continue or false to abort
33     */
34    public function onChangeTagsAfterUpdateTags( $addedTags, $removedTags,
35        $prevTags, $rc_id, $rev_id, $log_id, $params, $rc, $user
36    );
37}