Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4045305
FileTransformedHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
841 B
Referenced Files
None
Subscribers
None
FileTransformedHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaTransformOutput
;
use
MediaWiki\FileRepo\File\File
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "FileTransformed" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
FileTransformedHook
{
/**
* This hook is called when a file is transformed and moved into storage.
*
* @since 1.35
*
* @param File $file Reference to the File object
* @param MediaTransformOutput $thumb
* @param string $tmpThumbPath Temporary file system path of the transformed file
* @param string $thumbPath Permanent storage path of the transformed file
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onFileTransformed
(
$file
,
$thumb
,
$tmpThumbPath
,
$thumbPath
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 15 2026, 09:12 (13 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e7/2d/5e75b0c6141c5b0b9d75c988a781
Default Alt Text
FileTransformedHook.php (841 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment