#109332Introduce AfterHistoryDataCollectedForRecordEvent PSR-14 event in RecordHistory
Description
Problem
`RecordHistory::getHistoryDataForRecord()` collects history entries for a given record, but there is currently no way for extensions to augment or extend this history data without overriding the class via Xclass. This is limiting in cases where related records are linked through a custom foreign-key field rather than pid. For example, records which are referenced over an inline field are invisible in the history view because the core logic only follows pid-based sub-entries.
Solution
Introduce a new PSR-14 event `AfterHistoryDataCollectedForRecordEvent` dispatched at the end of `RecordHistory::getHistoryDataForRecord()`, after all core history data has been collected but before the result is sorted and returned.
Impact
- New event class: TYPO3\CMS\Backend\History\Event\AfterHistoryDataCollectedForRecordEvent
- Small, non-breaking change to RecordHistory::getHistoryDataForRecord()
Reviews 1
History 13
-
Gerrit Code Review pushed patch set 1 for main to change 93323 status
NewUnder Review <span data-processor="relativetime" data-value="2026-03-24T07:59:29+00:00" > 03/24/26, 07:59 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93323 <span data-processor="relativetime" data-value="2026-03-24T08:09:28+00:00" > 03/24/26, 08:09 </span>
-
Garvin Hicking changed subject
[FERATURE] Introduce AfterHistoryDataCollectedForRecordEvent PSR-14 event in RecordHistoryIntroduce AfterHistoryDataCollectedForRecordEvent PSR-14 event in RecordHistory category <span data-processor="relativetime" data-value="2026-03-24T08:42:17+00:00" > 03/24/26, 08:42 </span>