MediaWiki  master
Page\Hook\ArticleRevisionUndeletedHook Interface Reference

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

Inheritance diagram for Page\Hook\ArticleRevisionUndeletedHook:

Public Member Functions

 onArticleRevisionUndeleted ( $title, $revision, $oldPageID)
 This hook is called after an article revision is restored. More...
 

Detailed Description

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

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

Deprecated:
since 1.35. Use RevisionUndeleted instead.

Definition at line 15 of file ArticleRevisionUndeletedHook.php.

Member Function Documentation

◆ onArticleRevisionUndeleted()

Page\Hook\ArticleRevisionUndeletedHook::onArticleRevisionUndeleted (   $title,
  $revision,
  $oldPageID 
)

This hook is called after an article revision is restored.

Since
1.35
Parameters
Title$titleArticle title
Revision$revision
int | null$oldPageIDPage ID of the revision when archived
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: