TYPO3
7.6
|
Static Public Member Functions | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
Static Public Member Functions inherited from AbstractViewHelper | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Static Public Member Functions inherited from CompilableInterface | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Static Protected Member Functions | |
static | loadSettingsIntoArguments ($arguments, RenderingContextInterface $renderingContext) |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractViewHelper | |
registerArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
overrideArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
callRenderMethod () | |
getLogger () | |
buildRenderChildrenClosure () | |
hasArgument ($argumentName) | |
Protected Attributes inherited from AbstractViewHelper | |
$arguments | |
$templateVariableContainer | |
$controllerContext | |
$renderingContext | |
$renderChildrenClosure = null | |
$viewHelperVariableContainer | |
$objectManager | |
$escapingInterceptorEnabled = true | |
ViewHelper that renders a section or a specified partial
== Examples ==
<f:render partial="SomePartial" arguments="{foo: someVariable}" />
<output> the content of the partial "SomePartial". The content of the variable {someVariable} will be available in the partial as {foo} </output>
<f:section name="someSection">This is a section. {foo}</f:section> <f:render section="someSection" arguments="{foo: someVariable}" />
<output> the content of the section "someSection". The content of the variable {someVariable} will be available in the partial as {foo} </output>
<f:section name="mySection">
f:for each="{myMenu}" as="menuItem"> {menuItem.text} <f:if condition="{menuItem.subItems}"> <f:render section="mySection" arguments="{myMenu: menuItem.subItems}" /> </f:if> </f:for> </f:section> <f:render section="mySection" arguments="{myMenu: menu}" /> <output>
menu1
[...] (depending on the value of {menu}) </output>
<f:render partial="somePartial" arguments="{_all}" />
<output> the content of the partial "somePartial". Using the reserved keyword "_all", all available variables will be passed along to the partial </output>
Definition at line 76 of file RenderViewHelper.php.
|
staticprotected |
If $arguments['settings'] is not set, it is loaded from the TemplateVariableContainer (if it is available there).
array | $arguments | |
RenderingContextInterface | $renderingContext |
Definition at line 134 of file RenderViewHelper.php.
References AbstractViewHelper\$arguments, AbstractViewHelper\$templateVariableContainer, and RenderingContextInterface\getTemplateVariableContainer().
render | ( | $section = null , |
|
$partial = null , |
|||
$arguments = array() , |
|||
$optional = false |
|||
) |
Renders the content.
string | $section | Name of section to render. If used in a layout, renders a section of the main content file. If used inside a standard template, renders a section of the same file. |
string | $partial | Reference to a partial. |
array | $arguments | Arguments to pass to the partial. |
bool | $optional | Set to TRUE, to ignore unknown sections, so the definition of a section inside a template can be optional for a layout |
Definition at line 88 of file RenderViewHelper.php.
References AbstractViewHelper\$arguments, and AbstractViewHelper\buildRenderChildrenClosure().
|
static |
Renders the content.
array | $arguments | |
\Closure | $renderChildrenClosure | |
RenderingContextInterface | $renderingContext |
Definition at line 110 of file RenderViewHelper.php.
References AbstractViewHelper\$viewHelperVariableContainer, elseif, and RenderingContextInterface\getViewHelperVariableContainer().