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\Hook;
4
5use MediaWiki\Status\Status;
6use MediaWiki\Title\Title;
7use MediaWiki\User\User;
8
9/**
10 * This is a hook handler interface, see docs/Hooks.md.
11 * Use the hook name "TitleMove" to register handlers implementing this interface.
12 *
13 * @stable to implement
14 * @ingroup Hooks
15 */
16interface TitleMoveHook {
17    /**
18     * This hook is called before moving an article (title).
19     *
20     * @since 1.35
21     *
22     * @param Title $old Old title
23     * @param Title $nt New title
24     * @param User $user User who does the move
25     * @param string $reason Reason provided by the user
26     * @param Status &$status To abort the move, add a fatal error to this object
27     *       (i.e. call $status->fatal())
28     * @return bool|void True or no return value to continue or false to abort
29     */
30    public function onTitleMove( Title $old, Title $nt, User $user, $reason, Status &$status );
31}