main/core/Controller/HomeController.php
public function graphAction(Request $request)
    {
        $graph = $this->manager->getGraph($request->get('generated_content_url'));

        if (isset($graph['type'])) {
            return $this->render(
                'ClarolineCoreBundle:home/graph:'.$graph['type'].'.html.twig',
                ['content' => $graph],
                true
            );
        }

        return new Response('false');
    }
public function graphAction(Request $request)
    {
        $graph = $this->manager->getGraph($request->get('generated_content_url'));

        if (isset($graph['type'])) {
            return $this->render(
                'ClarolineCoreBundle:home/graph:'.$graph['type'].'.html.twig',
                ['content' => $graph],
                true
            );
        }

        return new Response('false');
    }
public function graphAction ( Request $ request ) { $ graph = $ this -> manager -> getGraph ( $ request -> get ( 'generated_content_url' ) ) ; if ( isset ( $ graph [ 'type' ] ) ) { return $ this -> render ( 'ClarolineCoreBundle:home/graph:' . $ graph [ 'type' ] . '.html.twig' , [ 'content' => $ graph ] , true ) ; } return new Response ( 'false' ) ; }
Render the HTML of a content generated by an external url with Open Grap meta tags.

@Route("/content/graph", name="claroline_content_graph")

@return \Symfony\Component\HttpFoundation\Response
Render the HTML of a content generated by an external url with Open Grap meta tags .