2 declare(strict_types = 1);
21 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
22 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
23 use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
34 use CompileWithRenderStatic;
50 $this->registerArgument(
'contentElementUid',
'int',
'The uid of a content element');
60 public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
63 $contentElementUid = $arguments[
'contentElementUid'];
65 if (!empty($contentRecord)) {
66 $pageLayoutView = GeneralUtility::makeInstance(PageLayoutView::class);
67 $content = $pageLayoutView->tt_content_drawItem($contentRecord);