Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5971479
GetExtendedMetadataHook.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
GetExtendedMetadataHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
File
;
use
MediaWiki\Context\IContextSource
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "GetExtendedMetadata" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
GetExtendedMetadataHook
{
/**
* Use this hook to get extended file metadata for the API.
*
* @since 1.35
*
* @param array &$combinedMeta Array of the form:
* 'MetadataPropName' => [
* value' => prop value,
* 'source' => 'name of hook'
* ]
* @param File $file File in question
* @param IContextSource $context RequestContext (including language to use)
* @param bool $single Only extract the current language; if false, the prop value should
* be in the metadata multi-language array format:
* https://mediawiki.org/wiki/Manual:File_metadata_handling#Multi-language_array_format
* @param int &$maxCacheTime How long the results can be cached
* @return bool|void True or no return value to continue or false to abort
*/
public
function
onGetExtendedMetadata
(
&
$combinedMeta
,
$file
,
$context
,
$single
,
&
$maxCacheTime
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 15:12 (14 m, 56 s)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e2/ff/2a0d877b7535756626c3cfb97f88
Default Alt Text
GetExtendedMetadataHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment