Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5971989
ParserMakeImageParamsHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
906 B
Referenced Files
None
Subscribers
None
ParserMakeImageParamsHook.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 "ParserMakeImageParams" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
ParserMakeImageParamsHook
{
/**
* This hook is called before the parser generates an image link, use this
* to modify the parameters of the image.
*
* @since 1.35
*
* @param Title $title Title object representing the file
* @param File $file File object that will be used to create the image
* @param array &$params Two-dimensional array of parameters
* @param Parser $parser Parser object that called the hook
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onParserMakeImageParams
(
$title
,
$file
,
&
$params
,
$parser
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 15:31 (7 h, 14 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/f2/f184aa032158efb153f23c719b28
Default Alt Text
ParserMakeImageParamsHook.php (906 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment