Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431907
FileDeleteCompleteHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1000 B
Referenced Files
None
Subscribers
None
FileDeleteCompleteHook.php
View Options
<?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
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 21:12 (1 d, 13 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
38/ef/07d1ab41aeab9714279306c504a9
Default Alt Text
FileDeleteCompleteHook.php (1000 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment