public function render(NodeInterface $node = null)
{
$view = $this->viewHelperVariableContainer->getView();
if (!$view instanceof TypoScriptAwareViewInterface) {
throw new ViewHelperException('This ViewHelper can only be used in a TypoScript content element. You have to specify the "node" argument if it cannot be resolved from the TypoScript context.', 1385737102);
}
$typoScriptObject = $view->getTypoScriptObject();
$currentContext = $typoScriptObject->getTsRuntime()->getCurrentContext();
if ($node === null) {
$node = $currentContext['node'];
}
return $this->contentElementWrappingService->wrapContentObject($node, $this->renderChildren(), $typoScriptObject->getPath());
}