MediaWiki  master
Page\Hook\RevisionUndeletedHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for Page\Hook\RevisionUndeletedHook:

Public Member Functions

 onRevisionUndeleted ( $revisionRecord, $oldPageID)
 After an article revision is restored. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "RevisionUndeleted" to register handlers implementing this interface.

Stable to implement

Definition at line 14 of file RevisionUndeletedHook.php.

Member Function Documentation

◆ onRevisionUndeleted()

Page\Hook\RevisionUndeletedHook::onRevisionUndeleted (   $revisionRecord,
  $oldPageID 
)

After an article revision is restored.

Since
1.35
Parameters
RevisionRecord$revisionRecordthe RevisionRecord that was restored
?int$oldPageID the page ID of the revision when archived (may be null)
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: