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

Public Member Functions

string render (array $flashMessages)

Detailed Description

A class representing a html flash message as plain text. It is used in CLI context per default. The created output contains at least the severity and the message in the following format: [SEVERITY] <message>

Example: [ERROR] No record found

In case the FlashMessage object contains also a title, the following format is used: [SEVERITY] <title>: <message>

Example: [ERROR] An error occurred: No record found

Multiple messages are separated by a new line (LF).

Definition at line 41 of file PlaintextRenderer.php.

Member Function Documentation

◆ render()

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

Render method

‪string Representation of the flash message as plain text

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

Definition at line 49 of file PlaintextRenderer.php.