MediaWiki master
PageUndeleteCompleteHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page\Hook;
4
9
34 public function onPageUndeleteComplete(
36 Authority $restorer,
37 string $reason,
38 RevisionRecord $restoredRev,
39 ManualLogEntry $logEntry,
40 int $restoredRevisionCount,
41 bool $created,
42 array $restoredPageIds
43 ): void;
44}
Class for creating new log entries and inserting them into the database.
Page revision base class.
This is a hook handler interface, see docs/Hooks.md.
onPageUndeleteComplete(ProperPageIdentity $page, Authority $restorer, string $reason, RevisionRecord $restoredRev, ManualLogEntry $logEntry, int $restoredRevisionCount, bool $created, array $restoredPageIds)
This hook is called after a page is undeleted.
Interface for a page that is (or could be, or used to be) an editable wiki page.
This interface represents the authority associated with the current execution context,...
Definition Authority.php:37