Debian Codegraph @

includes/Hook/TitleMoveHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MediaWiki\Status\Status;
6 use MediaWiki\Title\Title;
7 use 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 */
16 interface 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 }