Issue Bug Closed

#110378SrcsetViewHelper should accept Extbase file objects

Albrecht Köhnlein 08/05/26, 09:11 updated 08/11/26, 08:51

Description

I would expect the <f:image.srcset> viewhelper to accept Extbase image objects just like <f:image> does. But when I try, I receive this error:

> The argument “image” was registered with type “TYPO3\CMS\Core\Resource\FileInterface”, but is of type “TYPO3\CMS\Extbase\Domain\Model\FileReference” in view helper “TYPO3\CMS\Fluid\ViewHelpers\Image\SrcsetViewHelper”.

Reviews 2