loadEntityBySlug(SystemSlugType::IMPRINT); $view = $this->view($source, 200) ->setTemplate('standard/imprint.html.twig') ->setTemplateVar('source'); return $this->handleView($view); } /** * @Route("/", name="homepage") */ public function homepage(): Response { return $this->render('standard/homepage.html.twig'); } protected function setEntityName(): void { $this->entityName = AbstractSource::class; } }