Page MenuHomeWickedGov Phorge

FileUndeleteCompleteHook.php
No OneTemporary

Size
813 B
Referenced Files
None
Subscribers
None

FileUndeleteCompleteHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\Title\Title;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "FileUndeleteComplete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface FileUndeleteCompleteHook {
/**
* This hook is called when a file is undeleted.
*
* @since 1.35
*
* @param Title $title Title object for the file
* @param int[] $fileVersions Array of undeleted filearchive IDs. Empty if
* all versions were restored.
* @param User $user User who performed the undeletion
* @param string $reason
* @return bool|void True or no return value to continue or false to abort
*/
public function onFileUndeleteComplete( $title, $fileVersions, $user, $reason );
}

File Metadata

Mime Type
text/x-php
Expires
Oct 5 2026, 17:39 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
63/97/4cc04b5c1f106c31b1687f8d70f3
Default Alt Text
FileUndeleteCompleteHook.php (813 B)

Event Timeline