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) |
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 | |
Declares new variables which are aliases of other variables. Takes a "map"-Parameter which is an associative array which defines the shorthand mapping.
The variables are only declared inside the <f:alias>...</f:alias>-tag. After the closing tag, all declared variables are removed again.
= Examples =
<f:alias map="{x: 'foo'}">{x}</f:alias>
<output> foo </output>
<f:alias map="{x: foo.bar.baz, y: foo.bar.baz.name}"> {x.name} or {y} </f:alias>
<output> [name] or [name] depending on {foo.bar.baz} </output>
Definition at line 46 of file AliasViewHelper.php.
render | ( | array | $map | ) |
Declare aliases
array | $map | array that specifies which variables should be mapped to which alias |
Definition at line 55 of file AliasViewHelper.php.
References AbstractViewHelper\buildRenderChildrenClosure().
|
static |
Declare aliases
array | $arguments | |
\Closure | $renderChildrenClosure | |
RenderingContextInterface | $renderingContext |
Definition at line 73 of file AliasViewHelper.php.
References AbstractViewHelper\$renderChildrenClosure, AbstractViewHelper\$templateVariableContainer, and RenderingContextInterface\getTemplateVariableContainer().