[TASK] Unify primary actions in page module
[Packages/TYPO3.CMS.git] / typo3 / sysext / css_styled_content / Classes / Hooks / PageLayoutView / ImagePreviewRenderer.php
index 172b645..19f22db 100644 (file)
@@ -38,7 +38,7 @@ class ImagePreviewRenderer implements \TYPO3\CMS\Backend\View\PageLayoutViewDraw
        ) {
                if ($row['CType'] === 'image') {
                        if ($row['image']) {
-                               $itemContent .= $parentObject->thumbCode($row, 'tt_content', 'image');
+                               $itemContent .= $parentObject->linkEditContent($parentObject->getThumbCodeUnlinked($row, 'tt_content', 'image'), $row);
 
                                $fileReferences = \TYPO3\CMS\Backend\Utility\BackendUtility::resolveFileReferences('tt_content', 'image', $row);