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\Status\Status;
6
7/**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "ChangeTagAfterDelete" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup Hooks
13 */
14interface ChangeTagAfterDeleteHook {
15    /**
16     * This hook is called after a change tag has been deleted (that is, removed from all
17     * revisions and log entries to which it was applied). This gives extensions a chance
18     * to take it off their books.
19     *
20     * @since 1.35
21     *
22     * @param string $tag Name of the tag
23     * @param Status &$status Add warnings to this as required. There is no point setting errors,
24     *   as the deletion has already been partly carried out by this point.
25     * @return bool|void True or no return value to continue or false to abort
26     */
27    public function onChangeTagAfterDelete( $tag, &$status );
28}