MediaWiki REL1_35
MediaWiki\Hook\ValidateExtendedMetadataCacheHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\ValidateExtendedMetadataCacheHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 11 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: