MediaWiki fundraising/REL1_35
|
Stable to implement. More...
Public Member Functions | |
onGetExtendedMetadata (&$combinedMeta, $file, $context, $single, &$maxCacheTime) | |
Use this hook to get extended file metadata for the API. | |
Stable to implement.
Definition at line 12 of file GetExtendedMetadataHook.php.
MediaWiki\Hook\GetExtendedMetadataHook::onGetExtendedMetadata | ( | & | $combinedMeta, |
$file, | |||
$context, | |||
$single, | |||
& | $maxCacheTime ) |
Use this hook to get extended file metadata for the API.
array | &$combinedMeta | Array of the form: 'MetadataPropName' => [ value' => prop value, 'source' => 'name of hook' ] |
File | $file | File in question |
IContextSource | $context | RequestContext (including language to use) |
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 |
int | &$maxCacheTime | How long the results can be cached |
Implemented in MediaWiki\HookContainer\HookRunner.