Actions
Bug #82101
closedChange ClickEnlargeViewHelper image argument type
Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Fluid Styled Content
Target version:
-
Start date:
2017-08-15
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
I found that the image argument of the ClickEnlargeViewHelper has to be of type FileReference. This crashed my CE, because I tried to add a File object as the image to render for click enlarge. Out of curiosity, I changed the type of the image argument to accept FileInterface and it worked perfectly for me.
Is there a reason why this argument is limited to FileReferences only or can it be changed to accept FileInterface?
As far as I see, the FileReference is just another implementation of the FileInterface, so this shouldn't lead to any issues in the code later on, unless something is relying on the image to be a FileReference, which would be an error then imo.
Actions