1<?php
2
3/**
4 * This is a hook handler interface, see docs/Hooks.md.
5 * Use the hook name "RenameUserWarning" to register handlers implementing this interface.
6 *
7 * @stable to implement
8 * @ingroup Hooks
9 * @since 1.36
10 */
11interface RenameUserWarningHook {
12
13	/**
14	 * Called on Special:Renameuser before a user is renamed.
15	 * Will show the given warnings to the user and ask for a confirmation.
16	 *
17	 * @param string $oldUsername The old username as a page title.
18	 * @param string $newUsername The new username as a page title.
19	 * @param array &$warnings An array with 1 or more message keys, and 1 or more parameters
20	 * for the warnings to be shown
21	 */
22	public function onRenameUserWarning( string $oldUsername, string $newUsername, array &$warnings ) : void;
23
24}
25