MediaWiki REL1_35
MediaWiki\Hook\LinkerMakeMediaLinkFileHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\LinkerMakeMediaLinkFileHook:

Public Member Functions

 onLinkerMakeMediaLinkFile ( $title, $file, &$html, &$attribs, &$ret)
 This hook is called at the end of Linker::makeMediaLinkFile() just before the return.
 

Detailed Description

Stable to implement.

Definition at line 12 of file LinkerMakeMediaLinkFileHook.php.

Member Function Documentation

◆ onLinkerMakeMediaLinkFile()

MediaWiki\Hook\LinkerMakeMediaLinkFileHook::onLinkerMakeMediaLinkFile (   $title,
  $file,
$html,
$attribs,
$ret 
)

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

Since
1.35
Parameters
Title$titleTitle that the link is pointing to
File | bool$fileFile object or false if broken link
string&$htmlLink text
array&$attribsAttributes to be applied
string&$retValue to return if your hook returns 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: