MediaWiki master
MediaWiki\Hook\ThumbnailBeforeProduceHTMLHook Interface Reference

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

Inherited by MediaWiki\HookContainer\HookRunner.

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

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

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

Stability: stable
to implement

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