MediaWiki REL1_35
MediaWiki\Page\Hook\RevisionUndeletedHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Page\Hook\RevisionUndeletedHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 11 of file RevisionUndeletedHook.php.

Member Function Documentation

◆ onRevisionUndeleted()

MediaWiki\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: