Copied unchanged from public/typo3conf/ext/ of EP/website at 9593cc8631354f8a363d6609de8b7433f669a9a0 (Git-tracked files only). History stays in the old repository. Only composer.json files are added so the extensions install as path packages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
32 lines
1007 B
PHP
32 lines
1007 B
PHP
<?php
|
|
|
|
namespace EP\EpTheme\Hooks\PageLayoutView;
|
|
|
|
use TYPO3\CMS\Core\Database\ConnectionPool;
|
|
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
|
use TYPO3\CMS\Extbase\Object\ObjectManager;
|
|
|
|
class LineupPreviewRenderer extends AbstractPreviewRenderer
|
|
{
|
|
protected $cType = 'lineup';
|
|
|
|
protected function getAssignmentsForTemplate(): array
|
|
{
|
|
/** @var ObjectManager $objectManager */
|
|
$objectManager = GeneralUtility::makeInstance(ObjectManager::class);
|
|
/** @var ConnectionPool $connectionPool */
|
|
$connectionPool = $objectManager->get(ConnectionPool::class);
|
|
$queryBuilder = $connectionPool->getQueryBuilderForTable('tx_eptheme_domain_model_lineup');
|
|
$rows = $queryBuilder->select('*')
|
|
->from('tx_eptheme_domain_model_lineup')
|
|
->where('tt_content='.$this->data['uid'])
|
|
->orderBy('sorting', 'ASC')
|
|
->execute()
|
|
->fetchAllAssociative();
|
|
|
|
return [
|
|
'rows' => $rows,
|
|
];
|
|
}
|
|
}
|