MediaWiki REL1_35
MediaWiki\Hook\ThumbnailBeforeProduceHTMLHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ThumbnailBeforeProduceHTMLHook:

Public Member Functions

 onThumbnailBeforeProduceHTML ( $thumbnail, &$attribs, &$linkAttribs)
 This hook is called before an image HTML is about to be rendered (by ThumbnailImage:toHtml method).
 

Detailed Description

Stable to implement.

Definition at line 11 of file ThumbnailBeforeProduceHTMLHook.php.

Member Function Documentation

◆ onThumbnailBeforeProduceHTML()

MediaWiki\Hook\ThumbnailBeforeProduceHTMLHook::onThumbnailBeforeProduceHTML (   $thumbnail,
$attribs,
$linkAttribs 
)

This hook is called before an image HTML is about to be rendered (by ThumbnailImage:toHtml method).

Since
1.35
Parameters
ThumbnailImage$thumbnail
string[]&$attribsImage attribute array
string[]&$linkAttribsImage link attribute array
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: