Skip to content

[BUGFIX] Implement PreviewRendererInterface in GridRenderer#756

Open
torben-fr wants to merge 1 commit into
b13:masterfrom
torben-fr:master
Open

[BUGFIX] Implement PreviewRendererInterface in GridRenderer#756
torben-fr wants to merge 1 commit into
b13:masterfrom
torben-fr:master

Conversation

@torben-fr

Copy link
Copy Markdown

As the GridRenderer needs to implement the
PreviewRendererInterface for it to be resolved successfully by the
StandardPreviewRendererResolver as seen in [1], the
GridRenderer was adjusted to extend the
StandardContentPreviewRenderer to solve this issue. Directly
implementing the interface here would mean to also add the 4
missing functions the interface demands to the GridRenderer
which would most probably only be a useless code duplication.

[1] https://github.com/TYPO3-CMS/backend/blob/f842410118ea059292dc697e3c085e5b12ea41f0/Classes/Preview/StandardPreviewRendererResolver.php#L85

As the `GridRenderer` needs to implement the
`PreviewRendererInterface` for it to be resolved successfully by the
`StandardPreviewRendererResolver` as seen in [1], the
`GridRenderer` was adjusted to extend the
`StandardContentPreviewRenderer` to solve this issue. Directly
implementing the interface here would mean to also add the 4
missing functions the interface demands to the `GridRenderer`
which would most probably only be a useless code duplication.

[1] https://github.com/TYPO3-CMS/backend/blob/f842410118ea059292dc697e3c085e5b12ea41f0/Classes/Preview/StandardPreviewRendererResolver.php#L85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant