PHP Class Neos\FluidAdaptor\ViewHelpers\FlashMessagesViewHelper

= Examples =
  • Some Default Message
  • Some Warning Message
Depending on the FlashMessages
  • Default Message
  • Some notice message

    With message title
{flashMessage.code}
{flashMessage}
1013
Some Warning Message.
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper
显示文件 Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$tagName string

Public Methods

Method Description
initializeArguments ( ) : void Initialize arguments
render ( string $as = null, string $severity = null ) : string Renders flash messages that have been added to the FlashMessageContainer in previous request(s).

Protected Methods

Method Description
renderAsList ( array $flashMessages ) : string Render the flash messages as unsorted list. This is triggered if no "as" argument is given to the ViewHelper.
renderFromTemplate ( array $flashMessages, string $as ) : string Defer the rendering of Flash Messages to the template. In this case, the flash messages are stored in the template inside the variable specified in "as".

Method Details

initializeArguments() public method

Initialize arguments
public initializeArguments ( ) : void
return void

render() public method

Renders flash messages that have been added to the FlashMessageContainer in previous request(s).
public render ( string $as = null, string $severity = null ) : string
$as string The name of the current flashMessage variable for rendering inside
$severity string severity of the messages (One of the \Neos\Error\Messages\Message::SEVERITY_* constants)
return string rendered Flash Messages, if there are any.

renderAsList() protected method

Render the flash messages as unsorted list. This is triggered if no "as" argument is given to the ViewHelper.
protected renderAsList ( array $flashMessages ) : string
$flashMessages array
return string

renderFromTemplate() protected method

Defer the rendering of Flash Messages to the template. In this case, the flash messages are stored in the template inside the variable specified in "as".
protected renderFromTemplate ( array $flashMessages, string $as ) : string
$flashMessages array
$as string
return string

Property Details

$tagName protected_oe property

protected string $tagName
return string