ModifyIconForResourcePropertiesEvent¶
The PSR-14 event
\TYPO3\
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¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API¶
- class ModifyIconForResourcePropertiesEvent ¶
-
- Fully qualified name
-
\TYPO3\
CMS\ Core\ Imaging\ Event\ Modify Icon For Resource Properties Event
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 ( ) ¶
-
- Returns
-
\TYPO3\
CMS\ Core\ Resource\ Resource Interface
- getIconSize ( ) ¶
-
- Returns
-
\TYPO3\
CMS\ Core\ Imaging\ Icon Size
- getSize ( ) ¶
-
Deprecated: will be removed in v13, use getIconSize instead.
- Returns
-
string
- getOptions ( ) ¶
-
- Returns
-
array
- getIconIdentifier ( ) ¶
-
- Returns
-
?string
- setIconIdentifier ( ?string $iconIdentifier) ¶
-
- param $iconIdentifier
-
the iconIdentifier
- getOverlayIdentifier ( ) ¶
-
- Returns
-
?string
- setOverlayIdentifier ( ?string $overlayIdentifier) ¶
-
- param $overlayIdentifier
-
the overlayIdentifier