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