IconForRecord ViewHelper <core:iconForRecord> 

ViewHelper to display an icon for a record.

The record can be given as a plain database row, which requires the table to be set as well, or as a record object, which already carries its table. The arguments "row" and "record" are interchangeable, exactly one of them must be given.

   <core:iconForRecord table="tt_content" row="{row}" />
   <core:iconForRecord record="{record}" />
   <core:iconForRecord row="{record}" />
Copied!

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

Arguments

The following arguments are available for the iconForRecord ViewHelper:

alternativeMarkupIdentifier

alternativeMarkupIdentifier
Type
string
alternative markup identifier

record

record
Type
array|TYPO3\CMS\Core\Domain\RecordInterface
the record object or record row, interchangeable with "row"

row

row
Type
array|TYPO3\CMS\Core\Domain\RecordInterface
the record row or record object

size

size
Type
string
Default
'small'
the icon size

table

table
Type
string
the table for the record icon, not evaluated for record objects