TYPO3  7.6
Public Member Functions | List of all members
ChildNodeAccessInterface Interface Reference
Inheritance diagram for ChildNodeAccessInterface:
AbstractConditionViewHelper AbstractWidgetViewHelper ChildNodeAccessFacetViewHelper ActionMenuViewHelper SwitchViewHelper IfAuthenticatedViewHelper IfHasRoleViewHelper IfViewHelper IfAuthenticatedViewHelper IfHasRoleViewHelper PaginateViewHelper AutocompleteViewHelper PaginateViewHelper ActionMenuItemGroupViewHelper

Public Member Functions

 setChildNodes (array $childNodes)
 

Detailed Description

Child Node Access Facet. View Helpers should implement this interface if they need access to the direct children in the Syntax Tree at rendering-time. This might happen if you only want to selectively render a part of the syntax tree depending on some conditions. To render subnodes, you can fetch the RenderingContext via $this->renderingContext.

In most cases, you will not need this facet, and it is NO PUBLIC API! Right now it is only used internally for conditions, so by subclassing TYPO3, this should be all you need.

See for an example how it is used.

Definition at line 26 of file ChildNodeAccessInterface.php.

Member Function Documentation

setChildNodes ( array  $childNodes)

Sets the direct child nodes of the current syntax tree node.

Parameters
array<\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode>$childNodes
Returns
void

Implemented in AbstractWidgetViewHelper, ActionMenuViewHelper, SwitchViewHelper, and AbstractConditionViewHelper.