ModifyIconForResourcePropertiesEvent
FinalYes
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.
Table of Contents
Methods
- __construct() : mixed
- getIconIdentifier() : string|null
- getIconSize() : IconSize
- getOptions() : array<string|int, mixed>
- getOverlayIdentifier() : string|null
- getResource() : ResourceInterface
- setIconIdentifier() : void
- setOverlayIdentifier() : void
Methods
__construct()
public
__construct(ResourceInterface $resource, IconSize $size, array<string|int, mixed> $options, string|null $iconIdentifier, string|null $overlayIdentifier) : mixed
Parameters
- $resource : ResourceInterface
- $size : IconSize
- $options : array<string|int, mixed>
- $iconIdentifier : string|null
- $overlayIdentifier : string|null
getIconIdentifier()
public
getIconIdentifier() : string|null
Return values
string|nullgetIconSize()
public
getIconSize() : IconSize
Return values
IconSizegetOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getOverlayIdentifier()
public
getOverlayIdentifier() : string|null
Return values
string|nullgetResource()
public
getResource() : ResourceInterface
Return values
ResourceInterfacesetIconIdentifier()
public
setIconIdentifier(string|null $iconIdentifier) : void
Parameters
- $iconIdentifier : string|null
setOverlayIdentifier()
public
setOverlayIdentifier(string|null $overlayIdentifier) : void
Parameters
- $overlayIdentifier : string|null