MediaWiki REL1_39
MediaWiki\Page\Hook\RevisionUndeletedHook Interface Reference

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

Inheritance diagram for MediaWiki\Page\Hook\RevisionUndeletedHook:

Public Member Functions

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

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 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$oldPageIDthe 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: