Skip to content

Commit b7633dc

Browse files
committed
[TASK] Remove redundant icon + label from page preview
Due to plugins icons already being configured in TCA now, showing the icons and mode in page preview via page preview renderer is obsolete. Resolves: #874 Related: #869
1 parent 1a75c30 commit b7633dc

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Classes/EventListener/PreviewRenderingEventListener.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ public function __invoke(PageContentPreviewRenderingEvent $event): void
4343
return;
4444
}
4545

46-
$extensionIconUsage = $this->iconFactory->getIcon('ext-calendarize-wizard-icon', IconSize::SMALL)->render();
47-
$this->layoutService->setTitle($extensionIconUsage . ' Calendarize');
48-
49-
$listType = explode('_', $record[$listTypeField], 2)[1] ?? '';
50-
$this->layoutService->addRow(TranslateUtility::get('mode'), TranslateUtility::get('mode.' . $listType));
46+
$this->layoutService->setTitle(' Calendarize');
5147

5248
$pluginConfiguration = (int)$this->flexFormService->get('settings.pluginConfiguration', 'main');
5349
if ($pluginConfiguration) {

0 commit comments

Comments
 (0)