---
title: "Events to modify link handler"
manual: "TYPO3 Explained"
version: "12.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:modifylinkhandlers@12.4"
source: "ApiOverview/LinkHandling/Linkhandler/Events.rst"
rendered: "2026-10-21T15:29:37+00:00"
---

> [!WARNING]
> **Attention**
>
> TYPO3 v12 has reached end-of-life as of April 30th 2026 and
> is no longer being maintained. Use the version switcher on the top
> left of this page to select documentation for a supported version of TYPO3.
>
> Need more time before upgrading?
> You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here:
> [TYPO3 ELTS](https://typo3.com/services/extended-support-elts).

# Events to modify link handler {#modifylinkhandlers}

You may have to modify the list of available link handlers based on
some dynamic value.

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

Starting with TYPO3 version 12.0 you can use the following PSR-14 events:

-   [ModifyAllowedItemsEvent](https://docs.typo3.org/permalink/t3coreapi:modifyalloweditemsevent@12.4)
-   [ModifyLinkHandlersEvent](https://docs.typo3.org/permalink/t3coreapi:modifylinkhandlersevent@12.4)

## Supporting both TYPO3 v12 and v11 to modify the available link handlers {#supporting-both-typo3-v12-and-v11-to-modify-the-available-link-handlers}

If you want to be compatible to both TYPO3 v12 and v11, you can keep your
implementation of the hooks
`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['LinkBrowser']['hooks']` as
described in [Hooks](https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/LinkHandling/LinkBrowserApi/Index.html#modifyLinkHandlers) and implement the
event listeners at the same time. Remove the hook implementation upon dropping
TYPO3 v11 support.
