Neos\FluidAdaptor\ViewHelpers\FlashMessagesViewHelper::renderFromTemplate PHP Method

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
    protected function renderFromTemplate(array $flashMessages, $as)
    {
        $templateVariableContainer = $this->renderingContext->getVariableProvider();
        $templateVariableContainer->add($as, $flashMessages);
        $content = $this->renderChildren();
        $templateVariableContainer->remove($as);
        return $content;
    }