MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onGetExtendedMetadata (&$combinedMeta, $file, $context, $single, &$maxCacheTime) | |
Use this hook to get extended file metadata for the API. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetExtendedMetadata" to register handlers implementing this interface.
Definition at line 15 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.