Page MenuHomeWickedGov Phorge

FileTransformedHook.php
No OneTemporary

Size
841 B
Referenced Files
None
Subscribers
None

FileTransformedHook.php

<?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

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)

Event Timeline