/** * Render the HTML of the regions. * * @Route("/content/region/{content}", name="claroline_content_region", options = {"expose" = true}) * * @param string $content The id of the content or the entity object of a content * * @ParamConverter("content", class = "ClarolineCoreBundle:Content", options = {"id" = "content"}) * * @Template("ClarolineCoreBundle:Home:regions.html.twig") * * @return \Symfony\Component\HttpFoundation\Response */ public function regionAction(Content $content) { return ['id' => $content->getId(), 'region' => $this->manager->getRegion($content)]; }