#56211General getSpriteIcon method for files and folders is missing
Description
There is a general function to create a icon for a record. But there is no general function for creating a icon for a resource (file/folder).
With the introduction of FAL a the files and folders are object and so there is more info then just a name/extension to determine the right icon.
And with file_metadata you have the possibility to even add more info to a file (access rights etc) so it would be a nice addition if extensions could hook into the icon rendering and add overlays when needed.
My suggestion is to create a general function to create the icons for resources and implement a hook there so extensions can change the icon when needed and/or add overlays.
something like IconUtility::getSpriteIconForResource()