Review main Merged Breaking

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

Benni Mack CR +2 V +2 Nightmare +348 −2236 updated 09/19/22, 17:48

Commit message

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

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 17