[!!!][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:core-ci <typo3@b13.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/phpstan/phpstan-baseline.neon 0 additions, 5 deletionsBuild/phpstan/phpstan-baseline.neon
- typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php 3 additions, 35 deletions...ackend/Classes/Preview/StandardContentPreviewRenderer.php
- typo3/sysext/backend/Classes/View/BackendLayout/ContentFetcher.php 14 additions, 36 deletions...ext/backend/Classes/View/BackendLayout/ContentFetcher.php
- typo3/sysext/backend/Classes/View/BackendLayout/Grid/GridColumnItem.php 6 additions, 17 deletions...ackend/Classes/View/BackendLayout/Grid/GridColumnItem.php
- typo3/sysext/backend/Classes/View/Event/IsContentUsedOnPageLayoutEvent.php 58 additions, 0 deletions...end/Classes/View/Event/IsContentUsedOnPageLayoutEvent.php
- typo3/sysext/backend/Classes/View/Event/ModifyDatabaseQueryForContentEvent.php 53 additions, 0 deletions...Classes/View/Event/ModifyDatabaseQueryForContentEvent.php
- typo3/sysext/backend/Classes/View/Event/PageContentPreviewRenderingEvent.php 66 additions, 0 deletions...d/Classes/View/Event/PageContentPreviewRenderingEvent.php
- typo3/sysext/backend/Classes/View/PageLayoutView.php 0 additions, 1938 deletionstypo3/sysext/backend/Classes/View/PageLayoutView.php
- typo3/sysext/backend/Tests/Functional/View/Fixtures/LanguageSelectorScenarioDefault.csv 0 additions, 3 deletions...ctional/View/Fixtures/LanguageSelectorScenarioDefault.csv
- typo3/sysext/backend/Tests/Functional/View/Fixtures/LanguageSelectorScenarioTranslationDone.csv 0 additions, 4 deletions...View/Fixtures/LanguageSelectorScenarioTranslationDone.csv
- typo3/sysext/backend/Tests/Functional/View/PageLayoutViewTest.php 0 additions, 132 deletions...sext/backend/Tests/Functional/View/PageLayoutViewTest.php
- typo3/sysext/core/Documentation/Changelog/12.0/Breaking-98375-RemovedHooksInPageModule.rst 60 additions, 0 deletions...hangelog/12.0/Breaking-98375-RemovedHooksInPageModule.rst
- typo3/sysext/core/Documentation/Changelog/12.0/Feature-98375-PSR-14EventsInPageModule.rst 40 additions, 0 deletions...Changelog/12.0/Feature-98375-PSR-14EventsInPageModule.rst
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php 30 additions, 0 deletions...figuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php 18 additions, 0 deletions...l/Configuration/ExtensionScanner/Php/ClassNameMatcher.php
Please register or sign in to comment