< Manual:Hooks
| 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.
Details
$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 also
- RevisionDataUpdates
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.