TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Fluid\Core\ViewHelper\Facets\PostParseInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Fluid\Core\ViewHelper\Facets\PostParseInterface:
Tx_Fluid_Core_ViewHelper_Facets_PostParseInterface TYPO3\CMS\Fluid\Tests\Unit\Core\Parser\Fixtures\PostParseFacetViewHelper TYPO3\CMS\Fluid\ViewHelpers\LayoutViewHelper TYPO3\CMS\Fluid\ViewHelpers\SectionViewHelper Tx_Fluid_ViewHelpers_LayoutViewHelper Tx_Fluid_ViewHelpers_SectionViewHelper

Static Public Member Functions

static postParseEvent (\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode $syntaxTreeNode, array $viewHelperArguments, \TYPO3\CMS\Fluid\Core\ViewHelper\TemplateVariableContainer $variableContainer)
 

Detailed Description

Post Parse Facet. Your view helper should implement this if you want a callback to be called directly after the syntax tree node corresponding to this view helper has been built.

In the callback, it is possible to store some variables inside the parseVariableContainer (which is different from the runtime variable container!). This implicates that you usually have to adjust the in case you implement this facet.

Normally, this facet is not needed, except in really really rare cases.

Definition at line 26 of file PostParseInterface.php.

Member Function Documentation

◆ postParseEvent()

static TYPO3\CMS\Fluid\Core\ViewHelper\Facets\PostParseInterface::postParseEvent ( \TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode  $syntaxTreeNode,
array  $viewHelperArguments,
\TYPO3\CMS\Fluid\Core\ViewHelper\TemplateVariableContainer  $variableContainer 
)
static

Callback which is called directly after the corresponding syntax tree node to this view helper has been built. This is a parse-time callback, which does not change the rendering of a view helper.

You can store some data inside the variableContainer given here, which can be used f.e. inside the TemplateView.

Parameters
\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\ViewHelperNode$syntaxTreeNodeThe current node in the syntax tree corresponding to this view helper.
array$viewHelperArgumentsView helper arguments as an array of SyntaxTrees. If you really need an argument, make sure to call $viewHelperArguments[$argName]->render(...)!
\TYPO3\CMS\Fluid\Core\ViewHelper\TemplateVariableContainer$variableContainerVariable container you can use to pass on some variables to the view.
Returns
void