Skip to content

Commit

Permalink
[BUGFIX] Create contentRecordRenderer via API
Browse files Browse the repository at this point in the history
Replace the Implementing of the ContentRecordRenderer with API. T3-Version-Switch not necessary.
  • Loading branch information
KaiGrosz committed Aug 3, 2023
1 parent cbd0f94 commit 78ad0c6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Classes/DataProcessing/ContainerProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,8 @@ protected function processColPos(
$children = $container->getChildrenByColPos($colPos);

$typo3Version = GeneralUtility::makeInstance(Typo3Version::class);
if ($typo3Version->getMajorVersion() < 12) {
$contentRecordRenderer = new RecordsContentObject($cObj);
} else {
$contentRecordRenderer = new RecordsContentObject();
$contentRecordRenderer->setContentObjectRenderer($cObj);
$contentRecordRenderer->setRequest($this->getRequest());
}
$contentRecordRenderer = $cObj->getContentObject('RECORDS');

$conf = [
'tables' => 'tt_content',
];
Expand Down

0 comments on commit 78ad0c6

Please sign in to comment.