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
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$tagName string

Méthodes publiques

Méthode 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).

Méthodes protégées

Méthode 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 méthode

Initialize arguments
public initializeArguments ( ) : void
Résultat void

render() public méthode

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)
Résultat string rendered Flash Messages, if there are any.

renderAsList() protected méthode

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
Résultat string

renderFromTemplate() protected méthode

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
Résultat string

Property Details

$tagName protected_oe property

protected string $tagName
Résultat string