MediaWiki master
|
This is a hook handler interface, see docs/Hooks.md. More...
Inherited by MediaWiki\HookContainer\HookRunner.
Public Member Functions | |
onLinkerMakeMediaLinkFile ( $title, $file, &$html, &$attribs, &$ret) | |
This hook is called at the end of Linker::makeMediaLinkFile() just before the return. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "LinkerMakeMediaLinkFile" to register handlers implementing this interface.
Definition at line 15 of file LinkerMakeMediaLinkFileHook.php.
MediaWiki\Hook\LinkerMakeMediaLinkFileHook::onLinkerMakeMediaLinkFile | ( | $title, | |
$file, | |||
& | $html, | ||
& | $attribs, | ||
& | $ret ) |
This hook is called at the end of Linker::makeMediaLinkFile() just before the return.
Title | $title | Title that the link is pointing to |
File | bool | $file | File object or false if broken link |
string | &$html | Link text |
array | &$attribs | Attributes to be applied |
string | &$ret | Value to return if your hook returns false |
Implemented in MediaWiki\HookContainer\HookRunner.