FluidTYPO3\Flux\ViewHelpers\VariableViewHelper::compile PHP Méthode

compile() public méthode

public compile ( string $argumentsVariableName, string $renderChildrenClosureVariableName, string &$initializationPhpCode, TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode $syntaxTreeNode, TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler $templateCompiler ) : string
$argumentsVariableName string
$renderChildrenClosureVariableName string
$initializationPhpCode string
$syntaxTreeNode TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode
$templateCompiler TYPO3\CMS\Fluid\Core\Compiler\TemplateCompiler
Résultat string
    public function compile($argumentsVariableName, $renderChildrenClosureVariableName, &$initializationPhpCode, AbstractNode $syntaxTreeNode, TemplateCompiler $templateCompiler)
    {
        return sprintf('\\TYPO3\\CMS\\Extbase\\Reflection\\ObjectAccess::getPropertyPath(' . '$renderingContext->getTemplateVariableContainer()->getAll(), %s[\'name\'])', $argumentsVariableName);
    }