MediaWiki  master
Go to the documentation of this file.
1 <?php
3 namespace MediaWiki\Hook;
5 use Status;
6 use Title;
7 use User;
16 interface TitleMoveHook {
30  public function onTitleMove( Title $old, Title $nt, User $user, $reason, Status &$status );
31 }
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: Status.php:44
Represents a title within MediaWiki.
Definition: Title.php:49
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition: User.php:70
This is a hook handler interface, see docs/
onTitleMove(Title $old, Title $nt, User $user, $reason, Status &$status)
This hook is called before moving an article (title).