FluidTYPO3\Flux\ViewHelpers\AbstractFormViewHelper::setContainerInRenderingContext PHP Méthode

setContainerInRenderingContext() protected static méthode

protected static setContainerInRenderingContext ( TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext, FluidTYPO3\Flux\Form\FormInterface $container ) : void
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
$container FluidTYPO3\Flux\Form\FormInterface
Résultat void
    protected static function setContainerInRenderingContext(RenderingContextInterface $renderingContext, FormInterface $container)
    {
        $renderingContext->getViewHelperVariableContainer()->addOrUpdate(static::SCOPE, static::SCOPE_VARIABLE_CONTAINER, $container);
        if (TRUE === $renderingContext->getTemplateVariableContainer()->exists(static::SCOPE_VARIABLE_CONTAINER)) {
            $renderingContext->getTemplateVariableContainer()->remove(static::SCOPE_VARIABLE_CONTAINER);
        }
        $renderingContext->getTemplateVariableContainer()->add(static::SCOPE_VARIABLE_CONTAINER, $container);
    }