loadEntityById($id); $view = $this->view($law, 200) ->setTemplate('law/view/standard.html.twig') ->setTemplateVar('law'); return $this->handleView($view); } /** * @Route("/law/{id}/right.{_format}", defaults={"_format"="html"}) */ public function right(int $id): RedirectResponse { /* * * @todo Implement function! */ } /** * @Route("/law/{id}/node.{_format}", defaults={"_format"="html"}) */ public function node(int $id): RedirectResponse { /* * * @todo Implement function! */ } protected function setEntityName(): void { $this->entityName = Law::class; } }