Issue Bug Closed

#86576Be.LinkViewHelper can not be used without arguments

Daniel Goerz 10/05/18, 09:32 updated 05/07/19, 12:17

Description

The newly introduced \TYPO3\CMS\Fluid\ViewHelpers\Be\LinkViewHelper can not be used without specifying the parameters. The following code will lead to a fatal error:

<f:be.link route="site_redirects">To the redirects module</f:be.link>

This is because the parameter argument is initialized with null if not passed to the ViewHelper but later on it is used as an array.

Solution: initialize the optional argument with the correct type.

Reviews 1