This class is used heavily basically everywhere, moving it to Utils wouldn't make much sense. Also with this change, we can move StatusValue to MediaWiki\Status as well. Bug: T321882 Depends-On: I5f89ecf27ce1471a74f31c6018806461781213c3 Change-Id: I04c1dcf5129df437589149f0f3e284974d7c98fa
27 lines
750 B
PHP
27 lines
750 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Hook;
|
|
|
|
use MediaWiki\Status\Status;
|
|
use MediaWiki\Title\Title;
|
|
|
|
/**
|
|
* This is a hook handler interface, see docs/Hooks.md.
|
|
* Use the hook name "MovePageIsValidMove" to register handlers implementing this interface.
|
|
*
|
|
* @stable to implement
|
|
* @ingroup Hooks
|
|
*/
|
|
interface MovePageIsValidMoveHook {
|
|
/**
|
|
* Use this hook to specify whether a page can be moved for technical reasons.
|
|
*
|
|
* @since 1.35
|
|
*
|
|
* @param Title $oldTitle Current (old) location
|
|
* @param Title $newTitle New location
|
|
* @param Status $status Status object to pass error messages to
|
|
* @return bool|void True or no return value to continue or false to abort
|
|
*/
|
|
public function onMovePageIsValidMove( $oldTitle, $newTitle, $status );
|
|
}
|