Skip to content
Snippets Groups Projects
Commit 1929e587 authored by Tim Wagner's avatar Tim Wagner
Browse files

[BUGFIX] Minimal improvement for PluginRenderer

parent 5232bb1d
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ class PluginRenderer implements PageLayoutViewDrawItemHookInterface {
$pid, 'tt_content', 'list_type', $listType
)
);
return '<span class="label label-info">' . $pluginName . '</span>&nbsp;';
return '<span class="label label-primary">' . $pluginName . '</span>&nbsp;';
}
/**
......@@ -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 . ']';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment