From 1929e58784da06308d0adde3e06abc4c320206ff Mon Sep 17 00:00:00 2001 From: Tim Wagner <tim.wagner@sgalinski.de> Date: Tue, 11 Aug 2020 12:18:00 +0200 Subject: [PATCH] [BUGFIX] Minimal improvement for PluginRenderer --- Classes/Hooks/PageLayoutView/PluginRenderer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Classes/Hooks/PageLayoutView/PluginRenderer.php b/Classes/Hooks/PageLayoutView/PluginRenderer.php index f0866bc..da7f569 100644 --- a/Classes/Hooks/PageLayoutView/PluginRenderer.php +++ b/Classes/Hooks/PageLayoutView/PluginRenderer.php @@ -234,7 +234,7 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface { $pid, 'tt_content', 'list_type', $listType ) ); - return '<span class="label label-info">' . $pluginName . '</span> '; + return '<span class="label label-primary">' . $pluginName . '</span> '; } /** @@ -250,12 +250,11 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface { protected function addFieldContentsToRecordIdList( string $table, string $recordIdList, string $field = 'title' ): string { - $backendUtility = GeneralUtility::makeInstance(BackendUtility::class); $recordIdsArray = GeneralUtility::intExplode(',', $recordIdList, TRUE); $recordsWithTitlesArray = []; foreach ($recordIdsArray as $recordId) { - $recordsWithTitlesArray[] = $backendUtility::getRecord( + $recordsWithTitlesArray[] = BackendUtility::getRecord( $table, $recordId, $field )[$field] . ' [' . $recordId . ']'; } -- GitLab