#25765Add hook when choosing icon overlays
Description
Method t3lib_iconWorks::mapRecordOverlayToSpriteIconName() is used to find out which overlay applies to a given record icon. However the overlay state may be influenced by “external” conditions and there’s currently no hook to override the overlay state.
An example of this is versioning: when a record is deleted in a workspace, its “deleted” field is not set to 1, but its “t3ver_state” is set to 2. So it should be possible for the version sysext to influence the icon overlay choice.
I propose to add a hook in t3lib_iconWorks::mapRecordOverlayToSpriteIconName() to allow for this kind of modification. As discussed in the v4 list, it is acceptable to introduce hooks into 4.5 too, as long as they are used by system extensions.