MediaWiki REL1_37
MediaWiki\Hook\MovePageCheckPermissionsHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\MovePageCheckPermissionsHook:

Public Member Functions

 onMovePageCheckPermissions ( $oldTitle, $newTitle, $user, $reason, $status)
 Use this hook to specify whether the user is allowed to move the page.
 

Detailed Description

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

Use the hook name "MovePageCheckPermissions" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 16 of file MovePageCheckPermissionsHook.php.

Member Function Documentation

◆ onMovePageCheckPermissions()

MediaWiki\Hook\MovePageCheckPermissionsHook::onMovePageCheckPermissions (   $oldTitle,
  $newTitle,
  $user,
  $reason,
  $status 
)

Use this hook to specify whether the user is allowed to move the page.

Since
1.35
Parameters
Title$oldTitleCurrent (old) location
Title$newTitleNew location
User$userUser making the move
string$reasonReason provided by the user
Status$statusStatus object to pass error messages to
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


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