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