Skip to content
Snippets Groups Projects
Commit ff67726f authored by Daniel Windloff's avatar Daniel Windloff Committed by Anja Leichsenring
Browse files

[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: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
parent 52dd6d09
Branches
Tags
No related merge requests found
Showing with 260 additions and 21 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