Project

General

Profile

Actions

Bug #82101

closed

Change ClickEnlargeViewHelper image argument type

Added by Kevin Ditscheid over 7 years ago. Updated over 5 years ago.

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #73814: Make ClickEnlargeViewHelper output data againClosedWouter Wolters2016-03-01

Actions
Actions

Also available in: Atom PDF