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
resolve()
This method resolves a FlashMessageRendererInterface for the given $context.
public
resolve() : FlashMessageRendererInterface
In case $context is null, the context will be detected automatic.
Return values
FlashMessageRendererInterfaceresolveContext()
This method detect the current context and return one of the following strings: - FE - BE - CLI
protected
resolveContext() : string
Return values
stringresolveFlashMessageRenderClass()
This method resolves the renderer class by given context.
protected
resolveFlashMessageRenderClass() : string