InfoboxViewHelper extends AbstractViewHelper uses CompileWithContentArgumentAndRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:be.infobox>

FinalYes

ViewHelper for rendering a styled content infobox markup.

States

The Infobox provides different context sensitive states that can be used to provide an additional visual feedback to the to the user to underline the meaning of the information.

Possible values are in range from -2 to 2. Please choose a meaningful value from the following list.

-2 Notices (Default) -1 Information 0 Positive feedback 1 Warnings 2 Error

Examples

Simple::

<f:be.infobox title="Message title">your box content</f:be.infobox>

All options::

<f:be.infobox title="Message title" message="your box content" state="-2" iconName="check" disableIcon="true" />

Table of Contents

Constants

STATE_ERROR  = 2
STATE_INFO  = -1
STATE_NOTICE  = -2
STATE_OK  = 0
STATE_WARNING  = 1

Properties

$escapeOutput  : bool
As this ViewHelper renders HTML, the output must not be escaped.

Methods

initializeArguments()  : void
renderStatic()  : string
resolveContentArgumentName()  : string
Explicitly set argument name to be used as content.

Constants

STATE_NOTICE

public mixed STATE_NOTICE = -2

STATE_WARNING

public mixed STATE_WARNING = 1

Properties

$escapeOutput

As this ViewHelper renders HTML, the output must not be escaped.

protected bool $escapeOutput = false

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

resolveContentArgumentName()

Explicitly set argument name to be used as content.

public resolveContentArgumentName() : string
Return values
string

        
On this page

Search results