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,
  $fileVersions,
  $user,
  $reason 
)

This hook is called when a file is undeleted.

Since
1.35
Parameters
Title$titleTitle object for the file
int[]$fileVersionsArray of undeleted filearchive IDs. Empty if all versions were restored.
User$userUser who performed the undeletion
string$reason
Returns
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: