MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
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. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PageUndeleteComplete" to register handlers implementing this interface.
Definition at line 17 of file PageUndeleteCompleteHook.php.
MediaWiki\Page\Hook\PageUndeleteCompleteHook::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.
ProperPageIdentity | $page | Page that was undeleted. |
Authority | $restorer | Who undeleted the page |
string | $reason | Reason the page was undeleted |
RevisionRecord | $restoredRev | Last revision of the undeleted page |
ManualLogEntry | $logEntry | Log entry generated by the restoration |
int | $restoredRevisionCount | Number of revisions restored during the deletion |
bool | $created | Whether the undeletion result in a page being created |
array | $restoredPageIds | Array of all undeleted page IDs. This will have multiple page IDs if there was more than one deleted page with the same page title. |
Implemented in MediaWiki\HookContainer\HookRunner.