MediaWiki REL1_40
MediaWiki\Hook\ValidateExtendedMetadataCacheHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onValidateExtendedMetadataCache ( $timestamp, $file)
 Use this hook to validate the cached metadata in FormatMetadata::getExtendedMeta.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ValidateExtendedMetadataCache" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file ValidateExtendedMetadataCacheHook.php.

Member Function Documentation

◆ onValidateExtendedMetadataCache()

MediaWiki\Hook\ValidateExtendedMetadataCacheHook::onValidateExtendedMetadataCache ( $timestamp,
$file )

Use this hook to validate the cached metadata in FormatMetadata::getExtendedMeta.

Since
1.35
Parameters
string$timestampTimestamp metadata was generated
File$fileFile the metadata is for
Returns
bool|void True or no return value to continue, or false to invalidate cache and call GetExtendedMetadata hook again

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: