Skip to content

Commit 81fdad5

Browse files
authored
BUG: add missing ViewHelper arguments
if not set the following Exception will be thrown if the the ViewHelper ist noch cached -> php 7.3 | Neos 5.1 Undeclared arguments passed to ViewHelper Sitegeist\Taxonomy\ViewHelpers\DimensionInformationViewHelper: node, dimension.
1 parent 6dd9928 commit 81fdad5

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Classes/ViewHelpers/DimensionInformationViewHelper.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@
77

88
class DimensionInformationViewHelper extends AbstractViewHelper
99
{
10+
11+
/**
12+
* Initialize arguments.
13+
*
14+
* @return void
15+
* @throws Exception
16+
*/
17+
public function initializeArguments()
18+
{
19+
$this->registerArgument('node', NodeInterface::class, 'Node', true);
20+
$this->registerArgument('dimension', 'string', 'Dimension', false, null);
21+
}
22+
1023
/**
1124
* @param NodeInterface $node
1225
* @param string $dimension dimension name

0 commit comments

Comments
 (0)