[TASK] Reduce hard-coded `tt_content` table in StandardPreviewRenderer
The goal here is to have a generic PreviewRenderer, which is not tt_content specific. The StandardContentPreviewRenderer could then extend this generic renderer. This is a pre-patch to make the refactoring easier in the next patch. For this to work, GridColumnItem now exposes methods to retrieve the table from the context, the type column and the record type. Additionally, some drive-by refactorings have been done like early return statements and stricter checks. The unused variable $infoArr has been removed as well. Resolves: #102825 Releases: main, 12.4 Change-Id: I38eab3c095e06b789915600e79b7831556a25ca5 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84705 Tested-by:core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de> Reviewed-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/backend/Classes/Preview/StandardContentPreviewRenderer.php 145 additions, 92 deletions...ackend/Classes/Preview/StandardContentPreviewRenderer.php
- typo3/sysext/backend/Classes/View/BackendLayout/Grid/GridColumnItem.php 20 additions, 8 deletions...ackend/Classes/View/BackendLayout/Grid/GridColumnItem.php
This diff is collapsed.
Please register or sign in to comment