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

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

static string 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 58 of file InfoboxViewHelper.php.

Member Function Documentation

◆ initializeArguments()

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

Initialize arguments.

Exceptions

Definition at line 78 of file InfoboxViewHelper.php.

◆ renderStatic()

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

Definition at line 94 of file InfoboxViewHelper.php.

References $icons, and TYPO3\CMS\Core\Utility\MathUtility\isIntegerInRange().

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 71 of file InfoboxViewHelper.php.

◆ STATE_ERROR

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

◆ STATE_INFO

◆ STATE_NOTICE

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

Definition at line 61 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