Manual:Hooks/XMPGetResults
Appearance
XMPGetResults | |
---|---|
Available from version 1.18.0 (r86169, codereview) Called just before returning the results array of parsing xmp data. | |
Define function: | public static function onXMPGetResults( &$data ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"XMPGetResults": "MediaWiki\\Extension\\MyExtension\\Hooks::onXMPGetResults"
}
}
|
Called from: | File(s): XMP.php |
Interface: | XMPGetResultsHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:XMPGetResults extensions.
Details
[edit]Can be used to post-process the results.
- &$data: Array of metadata sections (such as $data['xmp-general']) each section is an array of metadata tags returned (each tag is either a value, or an array of values).