Content-Length: 55464 | pFad | http://www.mediawiki.org/wiki/Manual:Hooks/PageMoveComplete

Manual:Hooks/PageMoveComplete - MediaWiki Jump to content

Manual:Hooks/PageMoveComplete

From mediawiki.org
PageMoveComplete
Available from version 1.35.0 (Gerrit change 588128)
After an article has been moved, post commit
Define function:
public static function onPageMoveComplete( 
	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": {
		"PageMoveComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onPageMoveComplete"
	}
}
Called from: File(s): page/MovePage.php
Interface: PageMoveCompleteHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:PageMoveComplete extensions.


See also

[edit]








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://www.mediawiki.org/wiki/Manual:Hooks/PageMoveComplete

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy