MediaWiki REL1_35
MediaWiki\Hook\FileUndeleteCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\FileUndeleteCompleteHook:

Public Member Functions

 onFileUndeleteComplete ( $title, $fileVersions, $user, $reason)
 This hook is called when a file is undeleted.

Detailed Description

Stable to implement.

Definition at line 12 of file FileUndeleteCompleteHook.php.

Member Function Documentation

◆ onFileUndeleteComplete()

MediaWiki\Hook\FileUndeleteCompleteHook::onFileUndeleteComplete (   $title,

This hook is called when a file is undeleted.

Title$titleTitle object for the file
int[]$fileVersionsArray of undeleted filearchive IDs. Empty if all versions were restored.
User$userUser who performed the undeletion
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner, and MediaWiki\HookContainer\HookRunner.

The documentation for this interface was generated from the following file: