InfoboxViewHelper extends AbstractViewHelper
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.
<f:be.infobox title="Message title">your box content</f:be.infobox>
<f:be.infobox title="Error!" state="{f:constant(name: 'TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_ERROR')}" iconName="check">your box content</f:be.infobox>
Tags
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
- getContentArgumentName() : string
- Explicitly set argument name to be used as content.
- initializeArguments() : void
- render() : string
Constants
STATE_ERROR
public
mixed
STATE_ERROR
= 2
STATE_INFO
public
mixed
STATE_INFO
= -1
STATE_NOTICE
public
mixed
STATE_NOTICE
= -2
STATE_OK
public
mixed
STATE_OK
= 0
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
getContentArgumentName()
Explicitly set argument name to be used as content.
public
getContentArgumentName() : string
Return values
stringinitializeArguments()
public
initializeArguments() : void
render()
public
render() : string