/** * @param array $arguments * @param \Closure $renderChildrenClosure * @param RenderingContextInterface $renderingContext * @return void */ public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) { $component = static::getComponent($renderingContext, $arguments, $renderChildrenClosure); $container = static::getContainerFromRenderingContext($renderingContext); $container->add($component); // rendering child nodes with Form's last sheet as active container static::setContainerInRenderingContext($renderingContext, $component); $renderChildrenClosure(); static::setContainerInRenderingContext($renderingContext, $container); static::setExtensionNameInRenderingContext($renderingContext, static::getExtensionNameFromRenderingContextOrArguments($renderingContext, $arguments)); parent::renderStatic($arguments, $renderChildrenClosure, $renderingContext); }