Neos\FluidAdaptor\ViewHelpers\FlashMessagesViewHelper::renderFromTemplate PHP 메소드

renderFromTemplate() 보호된 메소드

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