MediaWiki master
MediaWiki\Hook\FileTransformedHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

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

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "FileTransformed" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 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: