Deprecation: #89127 - Cleanup RecordHistory handling

See Issue #89127

Description

The following properties of the \TYPO3\CMS\Backend\History\RecordHistory class have been marked as deprecated:

  • changeLog
  • lastHistoryEntry

The properties are now protected and have a public getter function.

The following public methods of the \TYPO3\CMS\Backend\History\RecordHistory class have changed visibility from public to protected:

  • getHistoryEntry()
  • getHistoryData()

The following methods of the \TYPO3\CMS\Backend\History\RecordHistory class have been marked as deprecated:

  • createChangeLog(), use getChangeLog() instead
  • shouldPerformRollback()
  • getElementData(), use getElementInformation() instead
  • performRollback(), use RecordHistoryRollback::performRollback() instead
  • createMultipleDiff(), use getDiff() instead
  • setLastHistoryEntry(), use setLastHistoryEntryNumber() instead

Impact

Accessing these properties and methods directly will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

TYPO3 installations with custom extensions or TypoScript directly accessing these properties and methods.

Migration

Use the mentioned alternative methods and new classes.