‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper:

Public Member Functions

 initializeArguments ()
 
 resolveContentArgumentName ()
 

Static Public Member Functions

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

Public Attributes

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

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

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" />

Definition at line 64 of file InfoboxViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::initializeArguments ( )

Definition at line 79 of file InfoboxViewHelper.php.

◆ renderStatic()

static TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

◆ resolveContentArgumentName()

TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::resolveContentArgumentName ( )

Explicitly set argument name to be used as content.

Definition at line 129 of file InfoboxViewHelper.php.

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::$escapeOutput = false
protected

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

Definition at line 77 of file InfoboxViewHelper.php.

◆ STATE_ERROR

const TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_ERROR = 2

◆ STATE_INFO

const TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_INFO = -1

◆ STATE_NOTICE

const TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_NOTICE = -2

Definition at line 67 of file InfoboxViewHelper.php.

◆ STATE_OK

const TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_OK = 0

◆ STATE_WARNING

const TYPO3\CMS\Fluid\ViewHelpers\Be\InfoboxViewHelper::STATE_WARNING = 1