Skip to content

Commit

Permalink
[TASK] get edit button label in reference preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ulrichmathes committed Jun 4, 2024
1 parent e51c000 commit ab9ab0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/PageLayoutView/ShortcutPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function renderPageModulePreviewContent(GridColumnItem $item): string
$preview = '';
foreach ($shortCutRenderItems as $shortcutRecord) {
$shortcutItem = GeneralUtility::makeInstance(GridColumnItem::class, $item->getContext(), $item->getColumn(), $shortcutRecord);
$preview .= '<p class="pt-2 small"><b><a href="' . $shortcutItem->getEditUrl() . '">' . $this->getLanguageService()->getLL('edit') . '</a></b></p>';
$preview .= '<p class="pt-2 small"><b><a href="' . $shortcutItem->getEditUrl() . '">' . $this->getLanguageService()->sL('LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:edit') . '</a></b></p>';
$preview .= '<div class="mb-2 p-2 border reference">' . $shortcutItem->getPreview() . '<div class="reference-overlay"></div></div>';
}
return $preview;
Expand Down

0 comments on commit ab9ab0f

Please sign in to comment.