[TASK] Sync CMS Fluid with Flow Fluid 1.1 (part1)
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid / Classes / Core / ViewHelper / Facets / ChildNodeAccessInterface.php
1 <?php
2 namespace TYPO3\CMS\Fluid\Core\ViewHelper\Facets;
3
4 /* *
5 * This script is backported from the TYPO3 Flow package "TYPO3.Fluid". *
6 * *
7 * It is free software; you can redistribute it and/or modify it under *
8 * the terms of the GNU Lesser General Public License, either version 3 *
9 * of the License, or (at your option) any later version. *
10 * *
11 * The TYPO3 project - inspiring people to share! *
12 * */
13
14 /**
15 * Child Node Access Facet. View Helpers should implement this interface if they
16 * need access to the direct children in the Syntax Tree at rendering-time.
17 * This might happen if you only want to selectively render a part of the syntax
18 * tree depending on some conditions.
19 * To render subnodes, you can fetch the RenderingContext via $this->renderingContext.
20 *
21 * In most cases, you will not need this facet, and it is NO PUBLIC API!
22 * Right now it is only used internally for conditions, so by subclassing TYPO3\CMS\Fluid\Core\ViewHelpers\AbstractConditionViewHelper, this should be all you need.
23 *
24 * See \TYPO3\CMS\Fluid\ViewHelpers\IfViewHelper for an example how it is used.
25 */
26 interface ChildNodeAccessInterface {
27 /**
28 * Sets the direct child nodes of the current syntax tree node.
29 *
30 * @param array<\TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode> $childNodes
31 * @return void
32 */
33 public function setChildNodes(array $childNodes);
34 }
35
36 ?>