Debian Codegraph @

includes/RenameUser/Hook/RenameUserAbortHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\RenameUser\Hook;
4
5 /**
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "RenameUserAbort" to register handlers implementing this interface.
8 *
9 * Between MediaWiki 1.36 and 1.39, this interface was part of the Renameuser extension,
10 * with the namespace MediaWiki\Extension\Renameuser\Hook.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 * @since 1.40
15 */
16 interface RenameUserAbortHook {
17
18 /**
19 * Allows the renaming to be aborted.
20 *
21 * @param int $uid The user ID
22 * @param string $old The old username
23 * @param string $new The new username
24 *
25 * @return bool|void
26 */
27 public function onRenameUserAbort( int $uid, string $old, string $new );
28
29 }