Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F8106021
ImageBeforeProduceHTMLHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ImageBeforeProduceHTMLHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
File
;
use
MediaWiki\Parser\Parser
;
use
MediaWiki\Title\Title
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "ImageBeforeProduceHTML" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ImageBeforeProduceHTMLHook
{
/**
* This hook is called before producing the HTML created by a wiki image insertion.
* You can skip the default logic entirely by returning false, or just modify a few
* things using call-by-reference.
*
* @since 1.35
*
* @param null $unused Will always be null
* @param Title &$title Title object of the image
* @param File|false &$file File object, or false if it doesn't exist
* @param array &$frameParams Various parameters with special meanings; see documentation in
* includes/Linker.php for Linker::makeImageLink
* @param array &$handlerParams Various parameters with special meanings; see documentation in
* includes/Linker.php for Linker::makeImageLink
* @param string|bool &$time Timestamp of file in 'YYYYMMDDHHIISS' string
* form, or false for current
* @param string &$res Final HTML output, used if you return false
* @param Parser $parser
* @param string &$query Query params for desc URL
* @param string &$widthOption Used by the parser to remember the user preference thumbnailsize
* @return bool|void True or no return value to continue or false to skip the default logic
*/
public
function
onImageBeforeProduceHTML
(
$unused
,
&
$title
,
&
$file
,
&
$frameParams
,
&
$handlerParams
,
&
$time
,
&
$res
,
$parser
,
&
$query
,
&
$widthOption
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Dec 8, 03:07 (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c6/52/154254a58c99c630637554f5841e
Default Alt Text
ImageBeforeProduceHTMLHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment