‪TYPO3CMS  ‪main
TYPO3\CMS\Core\ViewHelpers\IconForRecordViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Core\ViewHelpers\IconForRecordViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

Displays icon for record.

Examples

Default::

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

Output::

<span class="t3js-icon icon icon-size-small icon-state-default icon-mimetypes-x-content-text" data-identifier="mimetypes-x-content-text" aria-hidden="true">
    <span class="icon-markup">
        <img src="/typo3/sysext/core/Resources/Public/Icons/T3Icons/mimetypes/mimetypes-x-content-text.svg" width="16" height="16">
    </span>
</span>

Definition at line 45 of file IconForRecordViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Core\ViewHelpers\IconForRecordViewHelper::initializeArguments ( )

Definition at line 54 of file IconForRecordViewHelper.php.

◆ renderStatic()

static TYPO3\CMS\Core\ViewHelpers\IconForRecordViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Definition at line 62 of file IconForRecordViewHelper.php.

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Core\ViewHelpers\IconForRecordViewHelper::$escapeOutput = false
protected

ViewHelper returns HTML, thus we need to disable output escaping

Definition at line 52 of file IconForRecordViewHelper.php.