• Daniel Windloff's avatar
    [TASK] Migrate RecordListController hooks to an PSR-14 event · ff67726f
    Daniel Windloff authored and maddy2101's avatar maddy2101 committed
    The following hooks in the RecordListController are used to add
    additional content above or below the main controller content:
    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>