MediaWiki REL1_40
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onFileDeleteComplete ( $file, $oldimage, $article, $user, $reason) | |
This hook is called when a file is deleted. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "FileDeleteComplete" to register handlers implementing this interface.
Definition at line 16 of file FileDeleteCompleteHook.php.
MediaWiki\Hook\FileDeleteCompleteHook::onFileDeleteComplete | ( | $file, | |
$oldimage, | |||
$article, | |||
$user, | |||
$reason ) |
This hook is called when a file is deleted.
LocalFile | $file | Reference to the deleted file |
string | null | $oldimage | In case of the deletion of an old image, the name of the old file |
WikiFilePage | null | $article | In case all revisions of the file are deleted, a reference to the WikiFilePage associated with the file |
User | $user | User who performed the deletion |
string | $reason |
Implemented in MediaWiki\HookContainer\HookRunner.