FlashMessageRendererResolver

A class for rendering flash messages.

Table of Contents

Properties

$renderer  : array<string|int, mixed>

Methods

resolve()  : FlashMessageRendererInterface
This method resolves a FlashMessageRendererInterface for the given $context.
resolveContext()  : string
This method detect the current context and return one of the following strings: - FE - BE - CLI
resolveFlashMessageRenderClass()  : string
This method resolves the renderer class by given context.

Properties

$renderer

protected array<string|int, mixed> $renderer = ['BE' => \TYPO3\CMS\Core\Messaging\Renderer\BootstrapRenderer::class, 'FE' => \TYPO3\CMS\Core\Messaging\Renderer\ListRenderer::class, 'CLI' => \TYPO3\CMS\Core\Messaging\Renderer\PlaintextRenderer::class, '_default' => \TYPO3\CMS\Core\Messaging\Renderer\PlaintextRenderer::class]

Methods

resolveContext()

This method detect the current context and return one of the following strings: - FE - BE - CLI

protected resolveContext() : string
Return values
string

resolveFlashMessageRenderClass()

This method resolves the renderer class by given context.

protected resolveFlashMessageRenderClass() : string
Return values
string

        
On this page

Search results