Feature: #89150 - Add events before and after rollback of record history entries

See forge#89150


Two new events have been introduced into record history that will be dispatched before and after a revert action.

  • \TYPO3\CMS\Backend\History\Event\BeforeHistoryRollbackStartEvent before the rollback starts
  • \TYPO3\CMS\Backend\History\Event\AfterHistoryRollbackFinishedEvent after the rollback finished

Both events resolve some information about the RecordHistory item:

  • getRecordHistoryRollback() returns the \TYPO3\CMS\Backend\History\RecordHistoryRollback object
  • getRollbackFields() returns a string with the rollback fields
  • getDiff() returns an array with the differences
  • getBackendUserAuthentication() returns a \TYPO3\CMS\Backend\BackendUserAuthentication object, which is used for this rollback operation

Additionally the \TYPO3\CMS\Backend\History\Event\AfterHistoryRollbackFinishedEvent gets the DataHandler input data:

  • getDataHandlerInput() returns an array with the DataHandler instructions.