Breaking-92508-RemovedHookForFilteringHMENUItems.rst 1.14 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
.. include:: ../../Includes.txt

=========================================================
Breaking: #92508 - Removed hook for filtering HMENU items
=========================================================

See :issue:`92508`

Description
===========

The hook :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/tslib/class.tslib_menu.php']['filterMenuPages']`
has been removed in favor of a new PSR-14 Event :php:`TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent`.

The event is called with all menu items instead of operating on
one single item.

Impact
======

Any hook implementation registered is not executed anymore
in TYPO3 v12.0+.


Affected Installations
======================

TYPO3 installations with custom menus using this hook.


Migration
=========

The hook is removed without deprecation in order to allow extensions
to work with TYPO3 v11 (using the hook) and v12+ (using the new Event)
when implementing the Event as well without any further deprecations.

Use the :doc:`PSR-14 Event <../12.0/Feature-92508-PSR-14EventForModifyingMenuItems.rst>`
to allow greater influence in the functionality.

.. index:: Frontend, FullyScanned, ext:frontend