Manual:Hooks/PageDeleteComplete
Appearance
PageDeleteComplete | |
---|---|
Available from version 1.37.0 Occurs after the delete page request has been processed | |
Define function: | public static function onPageDeleteComplete( MediaWiki\Page\ProperPageIdentity $page, MediaWiki\Permissions\Authority $deleter, string $reason, int $pageID, MediaWiki\Revision\RevisionRecord $deletedRev, ManualLogEntry $logEntry, int $archivedRevisionCount ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"PageDeleteComplete": "MediaWiki\\Extension\\MyExtension\\Hooks::onPageDeleteComplete"
}
}
|
Called from: | File(s): page/DeletePage.php |
Interface: | PageDeleteCompleteHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:PageDeleteComplete extensions.
Details
[edit]$page
: the page that was deleted$deleter
: the user who deleted the page$reason
: the reason the page was deleted$pageID
: the ID of the page that was deleted$deletedRev
: the last revision of the deleted page$logEntry
: the ManualLogEntry used to record the deletion$archivedRevisionCount
: the number of revisions archived during the deletion