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
getSize()  : string
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|null

getOptions()

public getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getOverlayIdentifier()

public getOverlayIdentifier() : string|null
Return values
string|null

getSize()

public getSize() : string
Deprecated

will be removed in v13, use getIconSize instead.

Return values
string

setIconIdentifier()

public setIconIdentifier(string|null $iconIdentifier) : void
Parameters
$iconIdentifier : string|null

setOverlayIdentifier()

public setOverlayIdentifier(string|null $overlayIdentifier) : void
Parameters
$overlayIdentifier : string|null

        
On this page

Search results