MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onPageUndelete (ProperPageIdentity $page, Authority $performer, string $reason, bool $unsuppress, array $timestamps, array $fileVersions, StatusValue $status) | |
This hook is called before (part of) a page is undeleted. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "PageUndelete" to register handlers implementing this interface.
Definition at line 16 of file PageUndeleteHook.php.
MediaWiki\Page\Hook\PageUndeleteHook::onPageUndelete | ( | ProperPageIdentity | $page, |
Authority | $performer, | ||
string | $reason, | ||
bool | $unsuppress, | ||
array | $timestamps, | ||
array | $fileVersions, | ||
StatusValue | $status ) |
This hook is called before (part of) a page is undeleted.
ProperPageIdentity | $page | Page being undeleted. |
Authority | $performer | Who is undeleting the page |
string | $reason | Reason the page is being undeleted |
bool | $unsuppress | Whether content is being unsuppressed or not |
string[] | $timestamps | Timestamps of revisions that we're going to undelete. If empty, means all revisions. |
int[] | $fileVersions | Versions of a file that we're going to undelete. If empty, means all versions. |
StatusValue | $status | Add any error here. |
Implemented in MediaWiki\HookContainer\HookRunner.