1<?php
2
3namespace MediaWiki\Page\Hook;
4
5use Revision;
6use Title;
7
8/**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "ArticleRevisionUndeleted" to register handlers implementing this interface.
11 *
12 * @deprecated since 1.35. Use RevisionUndeleted instead.
13 * @ingroup Hooks
14 */
15interface ArticleRevisionUndeletedHook {
16	/**
17	 * This hook is called after an article revision is restored.
18	 *
19	 * @since 1.35
20	 *
21	 * @param Title $title Article title
22	 * @param Revision $revision
23	 * @param int|null $oldPageID Page ID of the revision when archived
24	 * @return bool|void True or no return value to continue or false to abort
25	 */
26	public function onArticleRevisionUndeleted( $title, $revision, $oldPageID );
27}
28