MediaWiki master
MediaWiki\RenameUser\Hook\RenameUserAbortHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onRenameUserAbort (int $uid, string $old, string $new)
 Allows the renaming to be aborted.
 

Detailed Description

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.

Stability: stable
to implement
Since
1.40

Definition at line 16 of file RenameUserAbortHook.php.

Member Function Documentation

◆ onRenameUserAbort()

MediaWiki\RenameUser\Hook\RenameUserAbortHook::onRenameUserAbort ( int $uid,
string $old,
string $new )

Allows the renaming to be aborted.

Parameters
int$uidThe user ID
string$oldThe old username
string$newThe new username
Returns
bool|void

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: