IconForResource ViewHelper <core:iconForResource> 

ViewHelper to displays an icon for a FAL resource (file or folder means a TYPO3\CMS\Core\Resource\ResourceInterface).

Go to the source code of this ViewHelper: IconForResourceViewHelper.php (GitHub).

Arguments of the <core:iconForResource> ViewHelper 

alternativeMarkupIdentifier

alternativeMarkupIdentifier
Type
string
Alternative markup identifier

options

options
Type
array
Default
array ( )
An associative array with additional options

overlay

overlay
Type
string
Overlay identifier

resource

resource
Type
TYPO3\CMS\Core\Resource\ResourceInterface
Required
1
Resource

size

size
Type
string
Default
'small'
The icon size