BootstrapRenderer implements FlashMessageRendererInterface
Read onlyYes
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.
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Interfaces
- FlashMessageRendererInterface
- Interface must be implemented by all flash message renderer classes
Methods
- __construct() : mixed
- render() : string
- Gets the message rendered as clean and secure markup
Methods
__construct()
public
__construct(IconFactory $iconFactory) : mixed
Parameters
- $iconFactory : IconFactory
render()
Gets the message rendered as clean and secure markup
public
render(array<string|int, FlashMessage> $flashMessages) : string
Parameters
- $flashMessages : array<string|int, FlashMessage>
Return values
string —Representation of the flash message