Skip to content

Commit

Permalink
Fix RowViewHelper not being compiled
Browse files Browse the repository at this point in the history
Add missing CompileWithContentArgumentAndRenderStatic trait to ViewHelper class.
  • Loading branch information
Joshua Westerheide committed Sep 3, 2018
1 parent 1bc3d32 commit 063193f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Classes/ViewHelpers/RowWrapViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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);
}

/**
Expand Down

0 comments on commit 063193f

Please sign in to comment.