Skip to content
Snippets Groups Projects
Commit 9202450c authored by Benni Mack's avatar Benni Mack Committed by Christian Kuhn
Browse files

[!!!][FEATURE] Add PSR-14 Events for customized Page Module rendering

The three legacy hooks
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['record_is_used']
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][PageLayoutView::class]['modifyQuery']
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem']

are replaced by new PSR-14 Events:

* TYPO3\CMS\Backend\View\Event\IsContentUsedOnPageLayoutEvent
* TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent
* TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent

Additionally, the hooks
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']
* $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawFooter']
are removed as the same functionality can be achieved
with the existing PreviewRenderer functionality since TYPO3 v10.

The previous "main class" PageLayoutView is now removed (was marked
as internal) along with the interfaces for the removed hooks

* TYPO3\CMS\Backend\View\PageLayoutViewDrawFooterHookInterface
* TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface

Resolves: #98375
Releases: main
Change-Id: Iac4a76dce934de31c9749076d8054ae83ac45edb
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75778


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 08625d36
Branches
Tags
Showing
with 348 additions and 2170 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment