Skip to content

Commit

Permalink
Merge pull request #34 from davidspiola/master
Browse files Browse the repository at this point in the history
BUG: fix dimensionInformatonViewHelper
  • Loading branch information
mficzel authored Nov 25, 2020
2 parents f8ea838 + dda0972 commit a993040
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Classes/ViewHelpers/DimensionInformationViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ public function initializeArguments()
}

/**
* @param NodeInterface $node
* @param string $dimension dimension name
* @return string value with replaced text
* @api
*/
public function render(NodeInterface $node, $dimension = null)
public function render()
{
return self::renderStatic(
[
'node' => $node,
'dimension' => $dimension
'node' => $this->arguments['node'],
'dimension' => $this->arguments['dimension']
],
$this->buildRenderChildrenClosure(),
$this->renderingContext
Expand Down

0 comments on commit a993040

Please sign in to comment.