MediaWiki REL1_35
MediaWiki\Hook\FileDeleteCompleteHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\FileDeleteCompleteHook:

Public Member Functions

 onFileDeleteComplete ( $file, $oldimage, $article, $user, $reason)
 This hook is called when a file is deleted.

Detailed Description

Stable to implement.

Definition at line 13 of file FileDeleteCompleteHook.php.

Member Function Documentation

◆ onFileDeleteComplete()

MediaWiki\Hook\FileDeleteCompleteHook::onFileDeleteComplete (   $file,

This hook is called when a file is deleted.

LocalFile$fileReference to the deleted file
string$oldimageIn case of the deletion of an old image, the name of the old file
WikiFilePage$articleIn case all revisions of the file are deleted, a reference to the WikiFilePage associated with the file
User$userUser who performed the deletion
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.

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