Manual:Hooks/PageDeletionDataUpdates

PageDeletionDataUpdates
Available from version 1.32.0 (Gerrit change 418134)
Called when constructing a list of DeferrableUpdate to be executed when a page is deleted.
Define function:
public static function onPageDeletionDataUpdates( Title $title, \MediaWiki\Storage\RevisionRecord $revision, array &$updates ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"PageDeletionDataUpdates": "MyExtensionHooks::onPageDeletionDataUpdates"
	}
}
Called from: File(s): page/WikiPage.php
Function(s): getDeletionUpdates
Interface: PageDeletionDataUpdatesHook.php

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


DetailsEdit

  • $title: The Title of the page being deleted.
  • $revision: A MediaWiki\Storage\RevisionRecord representing the page's current revision at the time of deletion.
  • &$updates: A list of DeferrableUpdate that can be manipulated by the hook handler.

See alsoEdit