diff --git a/Classes/Hooks/PageLayoutView/PluginRenderer.php b/Classes/Hooks/PageLayoutView/PluginRenderer.php index f0866bcd2203a84f72af039074ec707b8580679b..da7f569e5964388502e86a5dcfcd256211666536 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 . ']'; }