Reference: Events
PSR-14 events dispatched by EXT:, and the core events it
dispatches or listens to. 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. 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. |
set | Replace the property bag. |
get | The processed file (after FAL). |
get | The original file reference. |
get | The configuration of this process call. |
Caveats:
processrecurses for every crop variant and() autogeneratederivative, so the event fires again for each of them.- A configured
properties.filter is applied after the event — list your custom keys there or they are dropped.include Only - The
url(or legacypublic) key, including the cache-busting suffix, is added after the event and is not in the property bag.Url
FileDataAfterCropVariantProcessingEvent
\Friends
Fired by File once per file, after all crop
variants have been processed (also when the file has none). Use it to
post-process the complete file payload including its crop.
| Method | Returns |
|---|---|
get | The whole processed-file payload. |
set | Replace it. |
get | The original file reference. |
get | The per-file configuration passed into
process — the
per-variant ones never reach the event. |
Core events dispatched by headless
\TYPO3\— dispatched byCMS\ Frontend\ Content Object\ Event\ Modify Records After Fetching Content Event CONTENT_(JSON Json) after each record fetch, as the coreContent Content Object CONTENTobject does.getis the JSON-encoded list collected so far; a replacement must be valid JSON (it is decoded withFinal Content () JSON_).THROW_ ON_ ERROR \TYPO3\— dispatched by the feloginCMS\ Frontend Login\ Event\ Before Redirect Event LoginXClass before it returns the JSON redirect envelope. Setting an empty redirect URL suppresses the redirect; the plugin returns its regular JSON view instead. See EXT:felogin.Controller
Core events headless listens to
\TYPO3\—CMS\ Redirects\ Event\ Redirect Was Hit Event Headless(identifierRedirect Response Listener headless/) builds the JSON redirect envelope. Customising it: EXT:redirects.Redirect Was Hit \TYPO3\—CMS\ Frontend\ Event\ After Cacheable Content Is Generated Event Afterbakes the SEO data 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 \TYPO3\—CMS\ Frontend\ Event\ Modify Href Lang Tags Event Headlessrewrites hreflang URLs throughHreflang Generator Listener Url.Utility \TYPO3\—CMS\ Frontend\ Event\ After Link Is Generated Event Afterrewrites page typolinks to the target site'sLink Is Generated Listener frontend.Base \TYPO3\—CMS\ Core\ Routing\ 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 \TYPO3\—CMS\ Core\ Resource\ Event\ Generate Public Url For Resource Event Proxy(identifierResource Public Url Listener headless/), registered only with headless.storageProxy.Proxy Resource Public Url \TYPO3\—CMS\ Frontend Login\ Event\ Login Confirmed Event Loginassigns theConfirmed Event Listener successstatus to the JSON login response.