MediaWiki REL1_37
MediaWiki\Hook\LinkerMakeExternalImageHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\LinkerMakeExternalImageHook:

Public Member Functions

 onLinkerMakeExternalImage (&$url, &$alt, &$img)
 This hook is called at the end of Linker::makeExternalImage() just before the return.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 12 of file LinkerMakeExternalImageHook.php.

Member Function Documentation

◆ onLinkerMakeExternalImage()

MediaWiki\Hook\LinkerMakeExternalImageHook::onLinkerMakeExternalImage ( $url,
$alt,
$img 
)

This hook is called at the end of Linker::makeExternalImage() just before the return.

Since
1.35
Parameters
string&$urlImage URL
string&$altImage's alt text
string&$imgNew image HTML (if returning false)
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: