MediaWiki REL1_35
MediaWiki\Hook\LinkerMakeExternalImageHook Interface Reference

Stable to implement. 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

Stable to implement.

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