---
title: "PSR-14 events"
manual: "Glossary 2"
version: "main"
permalink: "https://docs.typo3.org/permalink/jweiland/glossary2:events@main"
source: "Developer/Events/Index.rst"
rendered: "2026-11-03T17:28:49+00:00"
---

# PSR-14 events {#events}

`glossary2` dispatches the following PSR-14 events. Register your event
listeners with the PHP attribute
`#[TYPO3CMSCoreAttributeAsEventListener]`, see
[Extend the glossary function](https://docs.typo3.org/permalink/jweiland/glossary2:glossary-api-extend@main) for examples.

| Event | Description |
| --- | --- |
| `JWeilandGlossary2EventPostProcessFluidVariablesEvent` | Add or modify the Fluid variables of the list and show action. Implements `ControllerActionEventInterface`, which provides `getRequest()`, `getControllerName()`, `getActionName()` and `getSettings()`. |
| `JWeilandGlossary2EventModifyQueryOfSearchGlossariesEvent` | Get the Extbase query result of the glossary records together with the selected categories and the letter. |
| `JWeilandGlossary2EventPostProcessFirstLettersEvent` | Add or remove first letters of the A-Z navigation, see [PostProcessFirstLettersEvent](https://docs.typo3.org/permalink/jweiland/glossary2:glossary-api-postprocessfirstletters@main). |
| `JWeilandGlossary2EventSanitizeValueForCharsetHelperEvent` | Map special chars of a first letter to their ASCII representation, see [SanitizeValueForCharsetHelperEvent](https://docs.typo3.org/permalink/jweiland/glossary2:glossary-api-modifylettermapping@main). |

<!-- TODO: no Markdown rendering for "versionchanged" -->

ControllerActionEventInterface::getRequest() and the constructor of
PostProcessFluidVariablesEvent use
TYPO3CMSExtbaseMvcRequestInterface instead of
TYPO3CMSExtbaseMvcRequest. Only own implementations of
ControllerActionEventInterface have to adapt the return type.

<!-- TODO: no Markdown rendering for "versionchanged" -->

The event listeners of glossary2 are registered with the PHP attribute
#[AsEventListener] instead of Configuration/Services.yaml.
