‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer Class Reference
Inheritance diagram for TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer:
TYPO3\CMS\Core\Messaging\Renderer\FlashMessageRendererInterface

Public Member Functions

 __construct (IconFactory $iconFactory=null)
 
string render (array $flashMessages)
 

Protected Member Functions

string getClass (FlashMessage $flashMessage)
 
string getIconName (FlashMessage $flashMessage)
 
 getMessageAsMarkup (array $flashMessages)
 

Protected Attributes

IconFactory $iconFactory
 

Detailed Description

A class representing a bootstrap flash messages. This class renders flash messages as markup, based on the bootstrap HTML/CSS framework. It is used in backend context. The created output contains all classes which are required for the TYPO3 backend. Any kind of message contains also a nice icon.

Definition at line 32 of file BootstrapRenderer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::__construct ( IconFactory  $iconFactory = null)

Member Function Documentation

◆ getClass()

string TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::getClass ( FlashMessage  $flashMessage)
protected

Gets the message severity class name

Returns
‪string The message severity class name

Definition at line 58 of file BootstrapRenderer.php.

References TYPO3\CMS\Core\Messaging\AbstractMessage\getSeverity().

Referenced by TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer\getMessageAsMarkup().

◆ getIconName()

string TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::getIconName ( FlashMessage  $flashMessage)
protected

Gets the message severity icon name

Returns
‪string The message severity icon name

Definition at line 69 of file BootstrapRenderer.php.

References TYPO3\CMS\Core\Messaging\AbstractMessage\getSeverity().

Referenced by TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer\getMessageAsMarkup().

◆ getMessageAsMarkup()

TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::getMessageAsMarkup ( array  $flashMessages)
protected

◆ render()

string TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::render ( array  $flashMessages)

Render method

Parameters
FlashMessage[]$flashMessages
Returns
‪string Representation of the flash message

Implements TYPO3\CMS\Core\Messaging\Renderer\FlashMessageRendererInterface.

Definition at line 47 of file BootstrapRenderer.php.

References TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer\getMessageAsMarkup().

Member Data Documentation

◆ $iconFactory

IconFactory TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::$iconFactory
protected