<?php
/**
* Created by Elements.at New Media Solutions GmbH
*
*/
namespace App\Controller;
use Pimcore\Controller\FrontendController;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\HttpFoundation\Response;
class DefaultController extends FrontendController
{
/**
* @Template
*
* @return array<null>|Response
*/
public function defaultAction(): array|Response
{
if ($this->document->getType() == 'snippet' || $this->document->getType() == 'email') {
return [];
}
return $this->render('default/default.html.twig');
}
}