MediaWiki  master
MediaWiki\Hook\LocalFilePurgeThumbnailsHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\LocalFilePurgeThumbnailsHook:

Public Member Functions

 onLocalFilePurgeThumbnails ( $file, $archiveName)
 This hook is called before thumbnails for a local file are purged. More...
 

Detailed Description

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

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

Stable to implement

Definition at line 14 of file LocalFilePurgeThumbnailsHook.php.

Member Function Documentation

◆ onLocalFilePurgeThumbnails()

MediaWiki\Hook\LocalFilePurgeThumbnailsHook::onLocalFilePurgeThumbnails (   $file,
  $archiveName 
)

This hook is called before thumbnails for a local file are purged.

Since
1.35
Parameters
File$file
string$archiveNameName of an old file version or false if it's the current one
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: