Files
typo3-13/packages/ep_theme/Classes/Hooks/PageLayoutView/GmapPreviewRenderer.php
T
frommeandClaude Opus 5.5 a46918de9d chore: copy ep_products and ep_theme from EP/website@9593cc8
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]>
2026-10-21 14:01:20 +02:00

27 lines
685 B
PHP

<?php
namespace EP\EpTheme\Hooks\PageLayoutView;
use TYPO3\CMS\Backend\Utility\BackendUtility;
class GmapPreviewRenderer extends AbstractPreviewRenderer
{
protected $cType = 'gmap';
protected function getAssignmentsForTemplate(): array
{
$uid = $this->data['tx_eptheme_context_region'];
if ((int)$uid > 0) {
$content = BackendUtility::getRecord('tx_epproducts_domain_model_region', $uid);
} else {
$uid = $this->data['tx_eptheme_context_hotel'];
$content = BackendUtility::getRecord('tx_epproducts_domain_model_hotel', $uid);
}
return [
'content' => $content,
];
}
}