MediaWiki  master
MediaWiki\Hook\LinkerMakeMediaLinkFileHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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. More...
 

Detailed Description

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

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

Stable to implement

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