Manual:Hooks/MovePageIsValidMove
From Linux Web Expert
MovePageIsValidMove | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate> Specify whether a page can be moved for technical reasons. | |
<translate> Define function:</translate> | public static function onMovePageIsValidMove( Title $oldTitle, Title $newTitle, Status $status ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"MovePageIsValidMove": "MediaWiki\\Extension\\MyExtension\\Hooks::onMovePageIsValidMove"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> MovePage.php |
<translate> Interface:</translate> | MovePageIsValidMoveHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:MovePageIsValidMove extensions</tvar>.</translate>
Details
- $oldTitle: Title object of the current (old) location
- $newTitle: Title object of the new location
- $status: Status object to pass error messages to