Breaking-96526-RemovedHooksForModifyingPageModuleContent.rst 1.56 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
42
43
44
45
.. include:: ../../Includes.txt

==================================================================
Breaking: #96526 - Removed hooks for modifying page module content
==================================================================

See :issue:`96526`

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

The previously available hooks to modify the header
:php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawHeaderHook']`
and footer :php:`$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/db_layout.php']['drawFooterHook']`
content of the page module have been removed in favor of a new PSR-14
Event :php:`TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent`.

The public method :php:`PageLayoutController->getModuleTemplate()` has been
removed as well, since it was only used for the removed hooks.

Impact
======

Registering any of the mentioned hooks does no longer have any
effect in TYPO3 v12.0+. The extension scanner will detect usages
as strong match.

The method :php:`PageLayoutController->getModuleTemplate()` is no longer
available and will therefore lead to PHP errors when called from extension
code. The extension scanner will detect usages as weak match.

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

TYPO3 installations using one of the mentioned hooks or calling
:php:`PageLayoutController->getModuleTemplate()` in custom extension
code.

Migration
=========

Replace the hooks with the new PSR-14
:doc:`ModifyPageLayoutContentEvent <../12.0/Feature-96526-PSR-14EventForModifyingPageModuleContent.rst>`.

.. index:: Backend, PHP-API, FullyScanned, ext:backend