From 063193fdb901095deb616479fca8c85444d27d55 Mon Sep 17 00:00:00 2001 From: Joshua Westerheide Date: Mon, 3 Sep 2018 14:23:54 +0200 Subject: [PATCH] Fix RowViewHelper not being compiled Add missing CompileWithContentArgumentAndRenderStatic trait to ViewHelper class. --- Classes/ViewHelpers/RowWrapViewHelper.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Classes/ViewHelpers/RowWrapViewHelper.php b/Classes/ViewHelpers/RowWrapViewHelper.php index 7d35d03..48dd277 100644 --- a/Classes/ViewHelpers/RowWrapViewHelper.php +++ b/Classes/ViewHelpers/RowWrapViewHelper.php @@ -14,12 +14,15 @@ use TYPO3Fluid\Fluid\Core\Rendering\RenderableClosure; use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; +use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithContentArgumentAndRenderStatic; /** * ViewHelper which wraps content with a row according to the current gridsystem. */ class RowWrapViewHelper extends AbstractViewHelper { + use CompileWithContentArgumentAndRenderStatic; + /** * This ViewHelper's output is HTML, so it should not be escaped * @@ -34,12 +37,21 @@ class RowWrapViewHelper extends AbstractViewHelper */ protected $escapeChildren = false; + /** + * {@inheritdoc} + */ + public function initialize() + { + $this->contentArgumentName = 'content'; + } + /** * Initialize arguments. */ public function initializeArguments() { $this->registerArgument('colPos', 'int', 'Specify the colPos that should be rendered', false, 0); + $this->registerArgument('content', 'mixed', 'Content to be wrapped by the column', false, null); } /**