MediaWiki fundraising/REL1_35
MediaWiki\Hook\FileTransformedHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\FileTransformedHook:

Public Member Functions

 onFileTransformed ( $file, $thumb, $tmpThumbPath, $thumbPath)
 This hook is called when a file is transformed and moved into storage.
 

Detailed Description

Stable to implement.

Definition at line 12 of file FileTransformedHook.php.

Member Function Documentation

◆ onFileTransformed()

MediaWiki\Hook\FileTransformedHook::onFileTransformed ( $file,
$thumb,
$tmpThumbPath,
$thumbPath )

This hook is called when a file is transformed and moved into storage.

Since
1.35
Parameters
File$fileReference to the File object
MediaTransformOutput$thumb
string$tmpThumbPathTemporary file system path of the transformed file
string$thumbPathPermanent storage path of the transformed file
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: