MediaWiki REL1_37
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onGetMetadataVersion (&$version) | |
Use this hook to modify the image metadata version currently in use. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "GetMetadataVersion" to register handlers implementing this interface.
Definition at line 12 of file GetMetadataVersionHook.php.
MediaWiki\Hook\GetMetadataVersionHook::onGetMetadataVersion | ( | & | $version | ) |
Use this hook to modify the image metadata version currently in use.
This is used when requesting image metadata from a ForeignApiRepo. Media handlers that need to have versioned metadata should add an element to the end of the version array of the form 'handler_name=version'. Most media handlers won't need to do this unless they broke backwards compatibility with a previous version of the media handler metadata output.
string[] | &$version | Array of version strings |
Implemented in MediaWiki\HookContainer\HookRunner.