Manual:Hooks/PageMoveCompleting
Appearance
PageMoveCompleting | |
---|---|
Available from version 1.35.0 (Gerrit change 606071) After an article has been moved, pre commit | |
Define function: | public static function onPageMoveCompleting( MediaWiki\Linker\LinkTarget $old, MediaWiki\Linker\LinkTarget $new, MediaWiki\User\UserIdentity $userIdentity, int $pageid, int $redirid, string $reason, MediaWiki\Revision\RevisionRecord $revision ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"PageMoveCompleting": "MediaWiki\\Extension\\MyExtension\\Hooks::onPageMoveCompleting"
}
}
|
Called from: | File(s): MovePage.php |
Interface: | PageMoveCompletingHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:PageMoveCompleting extensions.
See also
[edit]- TitleMoveCompleting: legacy hook, deprecated in favor of this one