MediaWiki  master
MediaWiki\RenameUser\Hook\RenameUserPreRenameHook Interface Reference

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

Inheritance diagram for MediaWiki\RenameUser\Hook\RenameUserPreRenameHook:

Public Member Functions

 onRenameUserPreRename (int $uid, string $old, string $new)
 Called before a user is renamed. More...

Detailed Description

This is a hook handler interface, see docs/

Use the hook name "RenameUserPreRename" 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

Definition at line 16 of file RenameUserPreRenameHook.php.

Member Function Documentation

◆ onRenameUserPreRename()

MediaWiki\RenameUser\Hook\RenameUserPreRenameHook::onRenameUserPreRename ( int  $uid,
string  $old,
string  $new 

Called before a user is renamed.

int$uidThe user ID
string$oldThe old username
string$newThe new username

Implemented in MediaWiki\HookContainer\HookRunner.

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