EnrichFileMetaDataEvent 

The PSR-14 event \TYPO3\CMS\Core\Resource\Event\EnrichFileMetaDataEvent is called after a record has been loaded from database. It allows other places to extend the metadata at runtime.

The listeners receive the metadata record already resolved for the language and the workspace of the current context. This applies to the frontend, the backend, the command line, and eID requests.

Changed in version 15.0 Important: #110333 - File metadata is resolved in every context

Before, the listener typo3-frontend/overlay resolved the record, and only in the frontend. An ordering of your listener against this identifier is ignored and can be dropped.

Example 

API 

final class EnrichFileMetaDataEvent
Fully qualified name
\TYPO3\CMS\Core\Resource\Event\EnrichFileMetaDataEvent

Event that is called after a record has been loaded from database Allows other places to do extension of metadata at runtime or for example translation and workspace overlay.

getFileUid()
Returns
int
getMetaDataUid()
Returns
int
getRecord()
Returns
array
setRecord(array $record)
param $record

the record