| PageDeletionDataUpdates | |
|---|---|
| Available fromversion 1.32.0 (Gerrit change 418134) Called when constructing a list of DeferrableUpdate to be executed when a page is deleted. | |
| Define function: | publicstaticfunctiononPageDeletionDataUpdates(Title$title,\MediaWiki\Storage\RevisionRecord$revision,array&$updates){...} |
| Attach hook: | Inextension.json:{"Hooks":{"PageDeletionDataUpdates":"MediaWiki\\Extension\\MyExtension\\Hooks::onPageDeletionDataUpdates"}} |
| Called from: | File(s):page/WikiPage.php Function(s):getDeletionUpdates |
| Interface: | PageDeletionDataUpdatesHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:PageDeletionDataUpdates extensions.
$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.