Deprecation: #78477 - Refactoring of FlashMessage rendering

See Issue #78477

Description

The following methods and properties within FlashMessage::class have been marked as deprecated:

  • FlashMessage->classes
  • FlashMessage->icons
  • FlashMessage->getClass()
  • FlashMessage->getIconName()

Impact

Using these properties and methods will stop working in TYPO3 v9.

Affected Installations

All installations using the mentioned methods and properties above.

Migration

Use the new FlashMessageRendererResolver::class, for example:

GeneralUtility::makeInstance(FlashMessageRendererResolver::class)->resolve()->render()