Reference: Events
PSR-14 events dispatched by EXT:. For registration syntax
and a worked example see Events you can listen to.
EnrichFileDataEvent
Friends
Fired by File once a file's default properties
have been collected, before crop variants and autogenerate derive
extra fields. The canonical hook for adding custom file fields
(signed URLs, focus point, alt-text overrides) to every file in
the response.
| Method | Returns |
|---|---|
get | The current property bag (mutable via set). |
set | Replace the property bag. |
| `getProcessed(): FileInterface | The processed file (after FAL). |
get | The original file reference. |
get | Processing value object. |
FileDataAfterCropVariantProcessingEvent
Friends
Fired once per file, after all crop variants have been processed (and
also when the file has none). Use it to post-process the complete file
payload including its crop. The event carries the base
per-file Processing that was passed into
process — the per-variant configurations derived
inside the loop never reach the event.
| Method | Returns |
|---|---|
get | The whole processed-file payload. |
set | Replace it. |
get | The original file reference. |
get | The per-file Processing
(not per-variant). |
Core events you may also care about
These come from TYPO3 core but are commonly used alongside headless:
TYPO3CMSRedirects— headless'sEvent Redirect Was Hit Event Headless(identifierRedirect Response Listener headless/) builds the JSON redirect envelope from this event. Register your own listenerRedirect Was Hit afterit to replace the response — see EXT:redirects.TYPO3CMSFrontend— the headlessEvent After Cacheable Content Is Generated Event Afterlistens to this to bake SEO meta tags into the JSON response. Listen too if you need to post-process the full encoded JSON before it goes into the page cache.Cacheable Content Is Generated Listener TYPO3CMSFrontend— headless'sEvent Modify Href Lang Tags Event Headlessrewrites hreflang URLs throughHreflang Generator Listener Url.Utility TYPO3CMSFrontend— headless'sEvent After Link Is Generated Event Afterrewrites typolink URLs throughLink Is Generated Listener Url.Utility TYPO3CMSCore— headless'sRouting Event After Page Uri Generated Event Afterrewrites the host on URIs produced byPage Uri Generated Listener Page— BE "view" links, workspace split-screen previews and similar admin tooling land on the configuredRouter:: generate Uri () frontend. It acts only on backend requests and only when headless mode is enabled for the resolved site.Base TYPO3CMSCore— headless'sResource Event Generate Public Url For Resource Event Proxy(identifierResource Public Url Listener headless/) rewrites public URLs of local, publicly capable storages through the configured storage proxy. Registered only when theProxy Resource Public Url headless.feature flag is enabled, and acts only on frontend requests with headless mode on.storage Proxy TYPO3CMSFrontend— headless assigns theLogin Event Login Confirmed Event successstatus to the JSON login response.
See Events you can listen to for listener registration syntax.