/** * Save the associated view helper node in a static public class variable. * called directly after the view helper was built. * * @param \F3\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $syntaxTreeNode * @param array $viewHelperArguments * @param \F3\Fluid\Core\ViewHelper\TemplateVariableContainer $variableContainer * @return void * @author Sebastian Kurfürst <*****@*****.**> */ public static function postParseEvent(\F3\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $syntaxTreeNode, array $viewHelperArguments, \F3\Fluid\Core\ViewHelper\TemplateVariableContainer $variableContainer) { $viewHelperArguments['name']->setRenderingContext(new \F3\Fluid\Core\Rendering\RenderingContext()); $sectionName = $viewHelperArguments['name']->evaluate(); if (!$variableContainer->exists('sections')) { $variableContainer->add('sections', array()); } $sections = $variableContainer->get('sections'); $sections[$sectionName] = $syntaxTreeNode; $variableContainer->remove('sections'); $variableContainer->add('sections', $sections); }