Deprecation: #83942 - Deprecated FileFacade::getIcon¶
See forge#83942
Description¶
The method \TYPO3\CMS\Filelist\FileFacade::getIcon
has been marked as deprecated.
Impact¶
Calling the method \TYPO3\CMS\Filelist\FileFacade::getIcon
will trigger a deprecation warning.
Affected Installations¶
Instances with extensions using the method \TYPO3\CMS\Filelist\FileFacade::getIcon
Migration¶
Either use the ViewHelper <core:iconForResource resource="{file}" />
or
GeneralUtility::makeInstance(IconFactory::class)->getIconForResource($resource)
to render a resource-based icon.