Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4103490
FileTransformedHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
817 B
Referenced Files
None
Subscribers
None
FileTransformedHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
File
;
use
MediaTransformOutput
;
/**
* 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
Tue, Aug 18, 18:00 (3 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
7d/13/c23730ada8a8f53cc8e3ced7724b
Default Alt Text
FileTransformedHook.php (817 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment