[TASK] Migrate RecordListController hooks to an PSR-14 event
The following hooks in the RecordListController are used to add additional content above or below the main controller content: * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'] ['recordlist/Modules/Recordlist/index.php']['drawHeaderHook'] * $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'] ['recordlist/Modules/Recordlist/index.php']['drawFooterHook'] As this functionality could be useful, it should be migrated to a PSR-14 event. Both hook implementations use a meaningful parameter set (the request object) and return the additional content as string. As there is no dependency to the parent object (the class instance of the class where the hooks are placed), they could be migrated to a psr-14 event without a breaking change. Therefore, a PSR-14 event has been implemented to replace the hook functionality. An event listener has been created to provide a compatibility layer for both hooks. This allows a proper deprecation without breaking the hooks. The event listener (compatibility layer) could be removed in later versions without any changes in the controller class. Releases: master Resolves: #92062 Change-Id: I50e4897bae256ec165861bccd8356db107c78962 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65401 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-92062-MigrateRecordListControllerHooksToAnPSR-14Event.rst 64 additions, 0 deletions...92062-MigrateRecordListControllerHooksToAnPSR-14Event.rst
- typo3/sysext/install/Configuration/ExtensionScanner/Php/ArrayDimensionMatcher.php 10 additions, 0 deletions...figuration/ExtensionScanner/Php/ArrayDimensionMatcher.php
- typo3/sysext/recordlist/Classes/Controller/RecordListController.php 15 additions, 18 deletions...xt/recordlist/Classes/Controller/RecordListController.php
- typo3/sysext/recordlist/Classes/Event/RenderAdditionalContentToRecordListEvent.php 64 additions, 0 deletions...lasses/Event/RenderAdditionalContentToRecordListEvent.php
- typo3/sysext/recordlist/Classes/HookProvider/AddToRecordListHookProvider.php 52 additions, 0 deletions...list/Classes/HookProvider/AddToRecordListHookProvider.php
- typo3/sysext/recordlist/Configuration/Services.yaml 7 additions, 0 deletionstypo3/sysext/recordlist/Configuration/Services.yaml
- typo3/sysext/sys_note/Classes/Provider/RecordListProvider.php 43 additions, 0 deletions...3/sysext/sys_note/Classes/Provider/RecordListProvider.php
- typo3/sysext/sys_note/Configuration/Services.yaml 5 additions, 0 deletionstypo3/sysext/sys_note/Configuration/Services.yaml
- typo3/sysext/sys_note/ext_localconf.php 0 additions, 3 deletionstypo3/sysext/sys_note/ext_localconf.php
Please register or sign in to comment