Page MenuHomeWickedGov Phorge

FileDeleteCompleteHook.php
No OneTemporary

Size
1000 B
Referenced Files
None
Subscribers
None

FileDeleteCompleteHook.php

<?php
namespace MediaWiki\Hook;
use MediaWiki\FileRepo\File\LocalFile;
use MediaWiki\Page\WikiFilePage;
use MediaWiki\User\User;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "FileDeleteComplete" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface FileDeleteCompleteHook {
/**
* This hook is called when a file is deleted.
*
* @since 1.35
*
* @param LocalFile $file Reference to the deleted file
* @param string|null $oldimage In case of the deletion of an old image, the name of the old file
* @param WikiFilePage|null $article In case all revisions of the file are deleted, a reference to
* the WikiFilePage associated with the file
* @param User $user User who performed the deletion
* @param string $reason
* @return bool|void True or no return value to continue or false to abort
*/
public function onFileDeleteComplete( $file, $oldimage, $article, $user,
$reason
);
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 21:12 (1 d, 9 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
38/ef/07d1ab41aeab9714279306c504a9
Default Alt Text
FileDeleteCompleteHook.php (1000 B)

Event Timeline