IconForRecordViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <core:iconforrecord>
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">
<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>
Table of Contents
Properties
- $escapeOutput : bool
- ViewHelper returns HTML, thus we need to disable output escaping
Methods
- initializeArguments() : mixed
- Initializes the arguments
- renderStatic() : string
Properties
$escapeOutput
ViewHelper returns HTML, thus we need to disable output escaping
protected
bool
$escapeOutput
= false
Methods
initializeArguments()
Initializes the arguments
public
initializeArguments() : mixed
renderStatic()
public
static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
- $arguments : array<string|int, mixed>
- $renderChildrenClosure : Closure
- $renderingContext : RenderingContextInterface