ModifyIconForResourcePropertiesEvent

The PSR-14 event \TYPO3\CMS\Core\Resource\Event\ModifyIconForResourcePropertiesEvent is dispatched when an icon for a resource (file or folder) is fetched, allowing to modify the icon or overlay in an event listener.

Example

API

class \TYPO3\CMS\Core\Imaging\Event\ ModifyIconForResourcePropertiesEvent

This is an Event every time an icon for a resource (file or folder) is fetched, allowing to modify the icon or overlay in an event listener.

getResource ( )
returntype

TYPO3\CMS\Core\Resource\ResourceInterface

getIconSize ( )
returntype

TYPO3\CMS\Core\Imaging\IconSize

getSize ( )

Deprecated: will be removed in v13, use getIconSize instead.

returntype

string

getOptions ( )
returntype

array

getIconIdentifier ( )
returntype

string

setIconIdentifier ( string $iconIdentifier)
param string $iconIdentifier

the iconIdentifier

getOverlayIdentifier ( )
returntype

string

setOverlayIdentifier ( string $overlayIdentifier)
param string $overlayIdentifier

the overlayIdentifier